Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Witness node cannot switch to correct fork on restart if was shut down on another long fork #1703
If the correct fork is a soft fork, if we run the soft fork code with current data, it will crash on the forking block when replaying.
As analysed by @pmconrad:
That said, the fixed
On the other hand, we probably should NOT rely on this
CORE TEAM TASK LIST
A simple solution would be to enable undo_db
We should measure how much slower replaying 10k block with undo_db enabled really is, then decide how to solve.