by osmode on 7/25/17, 10:46 PM with 50 comments
by omarforgotpwd on 7/26/17, 12:39 AM
by keorn on 7/26/17, 4:42 AM
by coinfantastic on 7/25/17, 11:30 PM
Is there a better alternative?
by decentralised on 7/26/17, 5:35 AM
Since you are building a private network, you may also add a small script so your nodes only mine on demand (i.e., when there are new transactions) which will reduce the power usage on your machine and avoids having the difficulty increase too quickly.
Save the script below as mine.js (for instance) and then in your geth startup command, include it as `geth --networkid <your_networ_id> ...other params... js ./mine.js`
`var mining_threads = 1
function checkWork() { if (eth.pendingTransactions.length > 0) { if (eth.mining) return; console.log("== Pending transactions! Mining..."); miner.start(mining_threads); } else { miner.stop(); console.log("== No transactions! Mining stopped."); } }
eth.filter("latest", function(err, block) { checkWork(); }); eth.filter("pending", function(err, block) { checkWork(); });
checkWork();`
I picked up this "trick" from Embark framework (https://github.com/iurimatias/embark-framework)
by modalduality on 7/25/17, 10:59 PM
One addition--Geth 1.6 released a very nice interactive tool called puppeth that creates genesis blocks and provisions testnets, I've found it easier than doing everything myself.
Although once again there really wasn't any tutorial or documentation about puppeth for Ethereum beginners, the only reference I could find was a Taiwanese Ethereum meetup blogpost, which was mostly in Chinese.
by quickthrower2 on 7/26/17, 2:41 AM
by ym705 on 7/26/17, 12:19 AM