Instantly share code, notes, and snippets.

What would you like to do?
private chain geth1.x
// after geth1.x installed.
mkdir /tmp/eth/70
geth console
// you can check the eth.accounts[0] address, copy it and memo to somewhere
// control + c then escape from geth console.
// next make the private net genesisblock json file.
vim privatenet_genesis_block.json
// this is my sample of testnet genesis block json thank you @karalabe san
"nonce": "0xlitebeefdeadbeef",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x634f727365",
"gasLimit": "0x8000000",
"difficulty": "0x400",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {
// then use the previous eth.accounts[0] to the {should be input } place.
geth --datadir="/tmp/eth/70" --etherbase="{should be input }" --genesis privatenet_genesis_block.json console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment