System information
Geth version: 1.8.27 OS & Version: Linux Docker version: 18.09.0
Background
gcmode is full, syncmode is fast. Single node in private network. datadir mount to docker volume.
Problem
I restart the docker so that geth quit unsafely
sudo service docker restart
When I restart the geth, the latest block become 0.
eth.blockNumber
> 0
it was 140000, so 140000 minded blocks are missing. However, I still can get data of old blocks
eth.getBlock(140000);
> {data of this block}
So it looks like blocks still exist but the head of chain reset to 0.
Questions
1 Does full gcmode cause this issue?
2 Is there a way to reset the head? I tried
debug.setHead("0x222E0");
but nothing happen.