-
Notifications
You must be signed in to change notification settings - Fork 781
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
Block processing electra #5741
Block processing electra #5741
Conversation
* update * experiment * superstruct changes * revert * superstruct changes * fix tests * indexed attestation * indexed attestation superstruct * updated TODOs
* `superstruct` Attester Fork Variants * Push a little further * Deal with Encode / Decode of AttesterSlashing * not so sure about this.. * Stop Encode/Decode Bounds from Propagating Out * Tons of Changes.. * More Conversions to AttestationRef * Add AsReference trait (#15) * Add AsReference trait * Fix some snafus * Got it Compiling! :D * Got Tests Building * Get beacon chain tests compiling --------- Co-authored-by: Michael Sproul <[email protected]>
* Upgrade `superstruct` to `0.8.0` * superstruct `AggregateAndProof`
Merge unstable into Electra attestation changes
…/lighthouse into block-processing-electra
…/lighthouse into block-processing-electra
* dedup/cleanup and remove unneeded hashset use * remove irrelevant TODOs
…ectra_attestation_changes
…/lighthouse into block-processing-electra
* instantiate empty bitlist in unreachable code * clean up error conversion * fork enabled bool cleanup * remove a couple todos * return bools instead of options in `aggregate` and use the result * delete commented out code * use map macros in simple transformations * remove signers_disjoint_from * get ef tests compiling * get ef tests compiling * update intentionally excluded files
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.
All logic is correct with respect to the old spec, good to merge to me if we prefer to update to latest spec latter
consensus/state_processing/src/per_block_processing/process_operations.rs
Outdated
Show resolved
Hide resolved
continue; | ||
} | ||
|
||
let pending_balance_to_withdraw = state.get_pending_balance_to_withdraw(index)?; |
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.
get_pending_balance_to_withdraw
iterates over the full list of withdrawals making it a O(n^2) operation technically. We process only a few withdrawal requests per block, but we should watch to ensure we don't need a cache.
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.
maybe we should add per-operations metrics in a separate 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.
Add electra lightclient types
Avoid changing slasher schema for Electra
…ectra_attestation_changes
…bigsean/lighthouse into block-processing-electra
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 858b01f |
Issue Addressed
#5605
Tasks