y12studio / BlackBananaCoin

BlackBananaCoin(BKBC) cryptocurrency project
Apache License 2.0
3 stars 1 forks source link

build easy-mining2 bitcoind #11

Closed y12studio closed 10 years ago

y12studio commented 10 years ago

ref https://github.com/freewil/bitcoin-testnet-box

y12studio commented 10 years ago

test ubuntu 13.10 server x64

$ sudo apt-get install build-essential automake $ sudo apt-get install libssl-dev libcurl4-openssl-dev git $ sudo apt-get install libboost-all-dev

Add db4.8 repository and update $ sudo add-apt-repository ppa:bitcoin/bitcoin $ sudo apt-get update $ sudo apt-get install libdb4.8-dev libdb4.8++-dev

$ cd ~ $ git clone -b easy-mining2 https://github.com/y12studio/bitcoin.git $ cd bitcoin To Build $ ./autogen.sh $ ./configure $ make $ src/bitcoind -? $ ls -al ~/.bitcoin/ $ cat ~/.bitcoin/debug.log

y12studio commented 10 years ago

build testnet3

cd ~ git clone https://github.com/y12studio/bitcoin-testnet-box.git $ cd bitcoin-testnet-box/ $ export PATH=$PATH:~/bitcoin/src/ $ make start $ make getinfo bitcoind -datadir=1 getinfo { "version" : 89900, "protocolversion" : 70002, "walletversion" : 60000, "balance" : 3950.00000000, "blocks" : 56101, "timeoffset" : 0, "connections" : 1, "proxy" : "", "difficulty" : 1.00000000, "testnet" : true, "keypoololdest" : 1362643840, "keypoolsize" : 110, "paytxfee" : 0.00000000, "errors" : "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" } bitcoind -datadir=2 getinfo { "version" : 89900, "protocolversion" : 70002, "walletversion" : 60000, "balance" : 0.00000000, "blocks" : 56101, "timeoffset" : 0, "connections" : 1, "proxy" : "", "difficulty" : 1.00000000, "testnet" : true, "keypoololdest" : 1362643615, "keypoolsize" : 101, "paytxfee" : 0.00000000, "errors" : "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" }

$ make generate-true bitcoind -datadir=1 setgenerate true

wait ... $ make getinfo bitcoind -datadir=1 getinfo { "version" : 89900, "protocolversion" : 70002, "walletversion" : 60000, "balance" : 4100.00000000, "blocks" : 56104, "timeoffset" : 0, "connections" : 1, "proxy" : "", "difficulty" : 0.00000763, "testnet" : true, "keypoololdest" : 1362643842, "keypoolsize" : 106, "paytxfee" : 0.00000000, "errors" : "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" } bitcoind -datadir=2 getinfo { "version" : 89900, "protocolversion" : 70002, "walletversion" : 60000, "balance" : 0.00000000, "blocks" : 56104, "timeoffset" : 0, "connections" : 1, "proxy" : "", "difficulty" : 0.00000763, "testnet" : true, "keypoololdest" : 1362643615, "keypoolsize" : 101, "paytxfee" : 0.00000000, "errors" : "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" }

比對 "balance" : 3950.00000000, "blocks" : 56101, 跟 "balance" : 4100.00000000, "blocks" : 56104,

差了 3 blocks,產出 4100-3950=150BTC(3blocks) 1hr = 3600secs/2= 1800*50=90kBTC/hr,以這種速度要到第一階段 210k block(50BTC) = total 10500k (接近一千萬個 half of total 21000k),大約 10500/90kBTCperHr=116 Hrs ~= 5day。