Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added config items for late block reorg #7725

Merged
merged 5 commits into from
Nov 17, 2023

Conversation

rolfyone
Copy link
Contributor

  • added REORG_HEAD_WEIGHT_THRESHOLD, REORG_PARENT_WEIGHT_THRESHOLD, and REORG_MAX_EPOCHS_SINCE_FINALIZATION to phase0 configuration, and defaulted

  • added utility functions:

    • isShufflingStable
    • isFinalizationOk
    • calculateCommitteeFraction

which were part of the changes in ethereum/consensus-specs#3034

partially addresses #6595

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

 - added  `REORG_HEAD_WEIGHT_THRESHOLD`, `REORG_PARENT_WEIGHT_THRESHOLD`, and  `REORG_MAX_EPOCHS_SINCE_FINALIZATION` to phase0 configuration, and defaulted

 - added utility functions:
   - `isShufflingStable`
   - `isFinalizationOk`
   - `calculateCommitteeFraction`

which were part of the changes in ethereum/consensus-specs#3034

partially addresses Consensys#6595

Signed-off-by: Paul Harris <paul.harris@consensys.net>
Copy link
Member

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just some readability comments.

@rolfyone rolfyone enabled auto-merge (squash) November 17, 2023 01:34
@rolfyone rolfyone merged commit e0420c5 into Consensys:master Nov 17, 2023
4 checks passed
@rolfyone rolfyone deleted the 6595-config branch November 17, 2023 02:10
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.

2 participants