Open sondreb opened 4 years ago
No this is a known issue its rare but happens (most likely when node crashes) Basically consensus should not persist if its ahead of blockcore tip.
Right now the only way to recover is to resync from genesis
To fix this issue I think we should add code to the consensus rules to not persist rewind data that is behind blocksotre tip, either by waiting for blockstore or by keeping enough rewind data up to prev stop tip
Its a bit complicated so anyone that wants to deep dive in to consensus code this is a chance
Is this an issue on latest codebase?