Skip to content

Eagerly prune fork-choice on finalization change#51

Draft
dapplion wants to merge 1 commit into
unstablefrom
fork-choice-eager-pruning
Draft

Eagerly prune fork-choice on finalization change#51
dapplion wants to merge 1 commit into
unstablefrom
fork-choice-eager-pruning

Conversation

@dapplion
Copy link
Copy Markdown
Owner

Fork-choice currently may contain blocks that are not descendants of the current finalized checkpoint. That's because we lazily prune fork-choice.

If we prune fork-choice at the same moment we update the finalized checkpoint, all blocks in the fork-choice tree are descendants of finalized. Gossip verification paths check that roots are descendant of finalized. Now this can be done with a simple check into the fork-choice HashMap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant