I am currently running the latest Geth 1.8.1 Iceburg version. I setup a private Ethereum network following a tutorial and everything including mining works fine, but every time I restart Geth, the chain resets back to block number 0 all the mining transactions have gone missing and no ETH balance as well but transactions are recorded in the logs.
commands used:
geth --datadir "$ethereum_home/EthMasterChain" console 2>console.log
geth --datadir "$ethereum_home/EthMasterChain" init "$ethereum_home/genesis.json"
json file used:
{
"config": {
"chainId": 1234,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"nonce": "0x0000000000000045",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x8900000",
"difficulty": "0x400",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0xbe8d5fce9f60ab06b527dd177eed96eb95ee4138",
"alloc": {
"0xbe8d5fce9f60ab06b527dd177eed96eb95ee4138" : {"balance" : "10000000000000000000"}
}
}