-
Notifications
You must be signed in to change notification settings - Fork 746
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
Simplify fork choice's calculate_committee_fraction
#4211
Labels
code-quality
consensus
An issue/PR that touches consensus code, such as state_processing or block verification.
v4.2.0
Q2 2023
Comments
michaelsproul
added
code-quality
consensus
An issue/PR that touches consensus code, such as state_processing or block verification.
v4.2.0
Q2 2023
labels
Apr 19, 2023
@michaelsproul hi, i'd like to pick this one up so if I'm understanding the spec correctly, the additional calculations of instead |
yep! |
bors bot
pushed a commit
that referenced
this issue
May 3, 2023
## Issue Addressed [#4211](#4211) ## Proposed Changes This PR conforms the helper function `calculate_committee_fraction` to the [v1.3.0 spec](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md#get_weight) ## Additional Info the old definition of `calculate_committee_fraction` is almost identical, but the new definition is simpler.
Closed by #4213 |
ghost
pushed a commit
to oone-world/lighthouse
that referenced
this issue
Jul 13, 2023
## Issue Addressed [sigp#4211](sigp#4211) ## Proposed Changes This PR conforms the helper function `calculate_committee_fraction` to the [v1.3.0 spec](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md#get_weight) ## Additional Info the old definition of `calculate_committee_fraction` is almost identical, but the new definition is simpler.
Woodpile37
pushed a commit
to Woodpile37/lighthouse
that referenced
this issue
Jan 6, 2024
## Issue Addressed [sigp#4211](sigp#4211) ## Proposed Changes This PR conforms the helper function `calculate_committee_fraction` to the [v1.3.0 spec](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md#get_weight) ## Additional Info the old definition of `calculate_committee_fraction` is almost identical, but the new definition is simpler.
Woodpile37
pushed a commit
to Woodpile37/lighthouse
that referenced
this issue
Jan 6, 2024
## Issue Addressed [sigp#4211](sigp#4211) ## Proposed Changes This PR conforms the helper function `calculate_committee_fraction` to the [v1.3.0 spec](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md#get_weight) ## Additional Info the old definition of `calculate_committee_fraction` is almost identical, but the new definition is simpler.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
code-quality
consensus
An issue/PR that touches consensus code, such as state_processing or block verification.
v4.2.0
Q2 2023
Description
The v1.3.0 spec simplified the calculation of proposer boost in a way that is almost equivalent to the previous definition. We are still using the old definition but could update at any time to the simpler version.
Our impl:
lighthouse/consensus/proto_array/src/proto_array.rs
Lines 1054 to 1068 in a53830f
Spec: https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/fork-choice.md#get_weight
Discussion: ethereum/consensus-specs#3034 (comment)
Version
v4.0.1
The text was updated successfully, but these errors were encountered: