-
Notifications
You must be signed in to change notification settings - Fork 1k
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
EIP-7549: Attestation packing #14238
Conversation
} | ||
|
||
var attsForInclusion proposerAtts | ||
if postElectra { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we have the latest state why not do the post electra check from the version there instead of the epoch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed postElectra := slots.ToEpoch(blkSlot) >= params.BeaconConfig().ElectraForkEpoch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test for edge cases for post electra checks in a subsequent pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice thanks for the comment
What type of PR is this?
Feature
What does this PR do? Why is it needed?
Implementation of
compute_on_chain_aggregate
from https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/validator.md#attestations. This is a naive version that takes the top aggregate for each attestation_data+committee combination.