1
Main Development / Re: Mr. Spread
« on: March 03, 2015, 06:36:34 pm »Id say give him 31 days. Thats enough to time to be released if he's in jail for something small.
How much jail time you get for using bitcoin in russia?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Id say give him 31 days. Thats enough to time to be released if he's in jail for something small.
You should add a link to the whitepaper...
http://spreadcoin.net/files/SpreadCoin-WhitePaper.pdf
girino@vps1:~/git/spreadcoin/src$ ./spreadcoind getinfo
error: {"code":-1,"message":"map::at"}
Same errors.
I checked the link you gave me earlier, it is just a copy from some older bitcoin related version I believe. I don't think that Mr. Spread has updated it. (Except changed the word bitcoin to spreadcoin) because it talks about Boost Version 1.37 which most certainly is too old.
I have:Code: [Select]# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
# dpkg -s libboost-dev | grep 'Version'
Version: 1.54.0.1ubuntu1
I assume my "precise" ubuntu version is much more unforgiving then your "trusty" version, lol...
ok, i'll do an upgrade to 14.04
apt-get install libboost1.51-all-dev
I don't seem to be able to compile on my ubuntu server.
Not even 5 sec after the compilation start it stopped with the following error:
Here as copy paste:Code: [Select]root@rs211321:/usr/spreadcoin/src# make -j4 -f makefile.unix USE_UPNP=
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -std=gnu++0x -Wno-literal-suffix -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/usr/spreadcoin/src -I/usr/spreadcoin/src/obj -DUSE_IPV6=1 -I/usr/spreadcoin/src/leveldb/include -I/usr/spreadcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -std=gnu++0x -Wno-literal-suffix -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/usr/spreadcoin/src -I/usr/spreadcoin/src/obj -DUSE_IPV6=1 -I/usr/spreadcoin/src/leveldb/include -I/usr/spreadcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/db.d -o obj/db.o db.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -std=gnu++0x -Wno-literal-suffix -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/usr/spreadcoin/src -I/usr/spreadcoin/src/obj -DUSE_IPV6=1 -I/usr/spreadcoin/src/leveldb/include -I/usr/spreadcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/init.d -o obj/init.o init.cpp
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -std=gnu++0x -Wno-literal-suffix -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/usr/spreadcoin/src -I/usr/spreadcoin/src/obj -DUSE_IPV6=1 -I/usr/spreadcoin/src/leveldb/include -I/usr/spreadcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/main.d -o obj/main.o main.cpp
In file included from checkpoints.cpp:10:0:
main.h: In function ‘std::size_t hash_value(COutPoint)’:
main.h:345:5: error: ‘hash_combine’ is not a member of ‘boost’
In file included from db.h:8:0,
from db.cpp:6:
main.h: In function ‘std::size_t hash_value(COutPoint)’:
main.h:345:5: error: ‘hash_combine’ is not a member of ‘boost’
In file included from db.h:8:0,
from main.cpp:8:
main.h: In function ‘std::size_t hash_value(COutPoint)’:
main.h:345:5: error: ‘hash_combine’ is not a member of ‘boost’
In file included from txdb.h:8:0,
from init.cpp:6:
main.h: In function ‘std::size_t hash_value(COutPoint)’:
main.h:345:5: error: ‘hash_combine’ is not a member of ‘boost’
main.cpp: In member function ‘bool CBlock::CheckBlock(CValidationState&, bool, bool) const’:
main.cpp:2638:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
main.cpp: In function ‘void SpreadCoinMiner(CWallet*)’:
main.cpp:5325:49: warning: ‘auto_ptr’ is deprecated (declared at /usr/include/c++/4.6/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
At global scope:
cc1plus: warning: unrecognised command line option "-Wno-literal-suffix" [enabled by default]
make: *** [obj/checkpoints.o] Error 1
make: *** Waiting for unfinished jobs....
At global scope:
cc1plus: warning: unrecognised command line option "-Wno-literal-suffix" [enabled by default]
make: *** [obj/db.o] Error 1
At global scope:
cc1plus: warning: unrecognised command line option "-Wno-literal-suffix" [enabled by default]
make: *** [obj/init.o] Error 1
At global scope:
cc1plus: warning: unrecognised command line option "-Wno-literal-suffix" [enabled by default]
make: *** [obj/main.o] Error 1
root@rs211321:/usr/spreadcoin/src#
sudo apt-get install libboost-all-dev
When I enterQuoteecho "mnstart=`spreadcoind mnsecret 7f7bbb802daa9723b1e060cfa28b6e1a1b6d5ad68f1136ca8f6aa9450edee6f7:1`" >> ~/.spreadtestcoin/spreadcoin.conf
(with my transaction ID)
I get:Quoteerror: {"code":-5,"message":"Could not get private key, wallet is locked or it is not your transaction"}
Wallet is not locked and this is the transaction ID of the coins I sent to myself.
Anyone have any ideas?
It looks like a cold/remote setup is not possible yet. It only seems to work if the funds are on the VPS (e.g. private key known), I had the same problem.
I think it is better not to send your coins to the wallet stored on VPS but instead keep them in your local wallet and generate mnsecert from it.Hey Mr. Spread
This doesnt work at all. If the private key is unknown it you can't start the masternode from remote.
(...)
NOW I get:Quotenet.cpp:18:32: fatal error: miniupnpc/miniwget.h: No such file or directory
#include <miniupnpc/miniwget.h>
Heh. Any ideas?
sudo apt-get install libminiupnpc-dev
I got a little further this time. On the same step, this time I got:Quotevirtual memory exhausted: Cannot allocate memory
make: *** [obj/main.o] Error 1
After it ran for quite awhile. Is my little free micro instance not powerful enough? What is the story here?
A question,
I did the following:
1- in my home wallet i created a MN that has been elected.
2- i stopped this MN, but did not touch the funds
3- i used "mnsecret" on its' transaction:output
4- i went to my VPS and used "mnstart" to start a MN with this secret
What happens now? Will a new MN be created and elected with this secret? will it show on my home wallet? how? will those funds be unavailable in my home wallet? if not, what happens if i spend them?
thanks to all.
What I think should happen is that your MN (remember, your MN is just a machine that's tied via mnsecret key to a big enough lump of SPR) will get unelected, and when your VPS instance broadcasts via mnstart or having the correct mnstart line in the .conf it will in time get re-elected. I don't think you need the wallet with the SPR in on the VPS, as long as you have the correct mnstart= code in the VPS .conf file.
but what happens if i try to spend the funds for this N in my home machine (where they are actually stored)? Will the MN die or will the transaction be rejected by the network? Or will it simply enable me to multiply my MNs indefinitely?
What should happen is that on your home machine those inputs will still be locked, you'll have to stop your MN(s) on the VPS before you can spend them.
I have no idea though, I'll try it shortly...
A question,
I did the following:
1- in my home wallet i created a MN that has been elected.
2- i stopped this MN, but did not touch the funds
3- i used "mnsecret" on its' transaction:output
4- i went to my VPS and used "mnstart" to start a MN with this secret
What happens now? Will a new MN be created and elected with this secret? will it show on my home wallet? how? will those funds be unavailable in my home wallet? if not, what happens if i spend them?
thanks to all.
What I think should happen is that your MN (remember, your MN is just a machine that's tied via mnsecret key to a big enough lump of SPR) will get unelected, and when your VPS instance broadcasts via mnstart or having the correct mnstart line in the .conf it will in time get re-elected. I don't think you need the wallet with the SPR in on the VPS, as long as you have the correct mnstart= code in the VPS .conf file.
I don't think this is a bug per se, but it is a bit of a pain. At least on testnet when you are setting up lots of masternodes and sending test coins. I think on mainnet it would be less of an issue.I think this is similar to what just happened to me. I tried breaking up a masternode that had 350 coins in it so I created two new addresses and proceeded to send each of the new addy's 100.1 coins' after disabling the existing mn of course. I think I sent them back to back. What's strange is the first one I sent never made it to the newly created address. It ended up in a change address under the existing mn. So I ended up with one new mn, the second addy sent to, and the original mn addy still had 250 coins but in a change address. On top of that, I checked the tx ID and it showed it going to the addy I had created for it.
But I've found that if you setup a masternode and are waiting for the 50 confirmations, if you send coins to someone else during that time, it stops that masternode from being created. I assume the coins you sent to yourself for the masternode are used for the coins sent to the person which stops the masternode from being created. Not a huge deal, just an annoyance. But if people ask why their masternode didn't get created, ask them if they sent coins to someone else before the 50 confirms.
MyFarm,
When your coins didn't go through, did they show up in a change address in coin control?