private chain geth1.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// after geth1.x installed. | |
mkdir /tmp/eth/70 | |
geth console | |
personal.newAccount('password') | |
eth.accounts[0] | |
// 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 | |
privatenet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment