Possibility of statediffing gap if restarted in the midst of a reorg #402

Closed
opened 2023-07-22 02:49:23 +00:00 by telackey · 0 comments
Member

The current reorg handling code chases backwards to fill in missing parents. If that interrupted part way through it would leave a gap. That gap would not be noticed by the current gap checking code which is purely numeric, and we do have a block at that height, it is just the wrong one.

We should improve the gap checking code to consider not just numbers, but missing parents as well.

The current reorg handling code chases backwards to fill in missing parents. If that interrupted part way through it would leave a gap. That gap would not be noticed by the current gap checking code which is purely numeric, and we do have a block at that height, it is just the wrong one. We should improve the gap checking code to consider not just numbers, but missing parents as well.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/go-ethereum#402
No description provided.