Skip to content

Instantly share code, notes, and snippets.

@drouillard
Last active April 6, 2017 10:47
Show Gist options
  • Save drouillard/9b52beeae9db1fa9ccab2b842bdba483 to your computer and use it in GitHub Desktop.
Save drouillard/9b52beeae9db1fa9ccab2b842bdba483 to your computer and use it in GitHub Desktop.
Ethereum Genesis config with homestead block
eth_dir=/<your dir>
data_dir=$eth_dir/chain
config_dir=$eth_dir/config
# Note: If on OSX you may need quotes are parameters.
# Init chain
geth --datadir $data_dir init $config_dir/genesis.json
# Access console
# network id and port are arbitrary at this point. Need to consider if coordinating
geth --nodiscover --networkid 9090 --port 9999 --datadir $data_dir console 2> console2.log
# run with RPC available (testing only! never with real ether)
geth --nodiscover --unlock='0' --rpc --rpcaddr "0.0.0.0" --rpcport "8545" --rpccorsdomain "*" --nodiscover --networkid 9 --port 7777 --dev --datadir $data_dir
# Ethereum wallet on private network
$ open ./Ethereum\ Wallet.app/ --args --rpc http://<ip>:8545
# Allow to discover
geth --unlock='0' --rpc --rpcaddr "0.0.0.0" --rpcport "8545" --rpccorsdomain "*" --networkid 9 --port 9999 --dev --datadir $data_dir
{
"config": {
"homesteadBlock": 0
},
"nonce": "0x0000000000000042",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
"gasLimit": "0x8000000",
"difficulty": "0x00400",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x3333333333333333333333333333333333333333",
"alloc": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment