Ethereum Tutorials - Herong's Tutorial Examples - Version 1.02, by Dr. Herong Yang
Run "miner" with Lower Difficulty
This section describes how to run 'geth' miner with lower difficulty level.
With the "geth" node running on my private Ethereum network with the initial difficulty set to 1000000, I am ready try the 'miner' again:
> eth.blockNumber 0 > eth.coinbase "0x05d4e1a499775ce9d681abd50bda655c7b5ccb90" > miner.start(1) null ... > eth.blockNumber 11 > miner.stop() true
Wow! Within 2 minutes, I got 11 new blocks mined!
Here are the log file entries:
[21:11:23] Commit new mining work number=1 txs=0 uncles=0 [21:11:36] Successfully sealed new block number=1 hash=90af45…bf71c8 [21:11:36] mined potential block number=1 hash=90af45…bf71c8 [21:11:36] Commit new mining work number=2 txs=0 uncles=0 [21:11:58] Successfully sealed new block number=2 hash=6df690…3f3cd4 [21:11:58] mined potential block number=2 hash=6df690…3f3cd4 [21:11:58] Commit new mining work number=3 txs=0 uncles=0 [21:12:04] Successfully sealed new block number=3 hash=e2b3c5…64966d [21:12:04] mined potential block number=3 hash=e2b3c5…64966d ... [21:13:22] Commit new mining work number=11 txs=0 uncles=0 [21:13:30] Successfully sealed new block number=11 hash=8be5e9…6a622e [21:13:30] mined potential block number=11 hash=8be5e9…6a622e
This is too fast. Increase the network difficulty level from 1000000 to 10000000 is needed to slow down the growth of the blockchain.
Last update: 2018.
Table of Contents