Skip to content

Instantly share code, notes, and snippets.

@agatsoh
Created January 22, 2018 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agatsoh/c3345cf6572f67c98ad106522f572200 to your computer and use it in GitHub Desktop.
Save agatsoh/c3345cf6572f67c98ad106522f572200 to your computer and use it in GitHub Desktop.
Initialising
geth --identity "SohanNode" --rpc --rpccorsdomain "*" --datadir ~/privategeth --port "30303" --nodiscover --networkid 2018 init ~/privategeth/genesis.json
Starting
geth --identity "SohanNode" --rpc --rpccorsdomain "*" --datadir ~/privategeth --port "30303" --nodiscover --networkid 2018 --maxpeers 0 mine
genesis.json
{
"coinbase" : "0x67f49edf9b0f230f069f20dbcf2c9d55bebe74bd",
"difficulty" : "0x400",
"extraData" : "",
"gasLimit" : "0x8000000",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00",
"alloc": {
"67f49edf9b0f230f069f20dbcf2c9d55bebe74bd": { "balance": "3000000000000000000" },
"98a927d8623d4f3c887ecb503c4212e627b4fec8": { "balance": "4000000000000000000" }
},
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment