The latest block 701 was mined, then I shutdown my computer. When I restart, the latest block become 645 (eth.blockNumber is 645), I still can get block data of 646 - 701 (eth.getBlock(646) ... eth.getBlock(701) still return old data) but they are no longer a part of the chain, newly mined blocks will replace the old blocks and link to 645.
Is it because the gcmode is enabled and the data of 645 - 701 was not flushed to disk ?
Is there a way to "reset the head" to the old 701 , since old data was not lost?
Environment
Geth 1.8.27 Linux Docker 18.09.0
Options
--gcmode full --dev
Issue
The latest block 701 was mined, then I shutdown my computer. When I restart, the latest block become 645 (eth.blockNumber is 645), I still can get block data of 646 - 701 (eth.getBlock(646) ... eth.getBlock(701) still return old data) but they are no longer a part of the chain, newly mined blocks will replace the old blocks and link to 645. Is it because the gcmode is enabled and the data of 645 - 701 was not flushed to disk ? Is there a way to "reset the head" to the old 701 , since old data was not lost?