Timeline for Generate genesis.json from existing node
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 7 at 5:01 | comment | added | Nulik |
Ethereum provides functions for dumping the state, but I am not sure if there is a front-end to dump it, maybe with debug api? check cmd directory in ethereum sources. github.com/ethereum/go-ethereum/blob/…
|
|
Nov 28 at 19:46 | comment | added | DimaA6_ABC | @Nulik thank you! regarding your second comment - any example how to read the state for particular block? | |
Nov 28 at 18:56 | comment | added | Nulik | you can reconstruct genesis by assembling the JSON file from the data located in the header of the block 0, and to figure out the account balances, you will have to read the state using stateRoot (of block 0) and read all the accounts and their balances (and code) | |
Nov 28 at 18:54 | comment | added | Nulik |
before you start your node you need to run geth init to initialize block 0 , after that it will only run for your network, not mainnet. if you start geth without init command executed previously, geth will make default initialization using mainnet genesis
|
|
Nov 27 at 17:52 | history | asked | DimaA6_ABC | CC BY-SA 4.0 |