fix: update attestation data index extraction - #9158
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors SSZ byte extraction utilities to clarify the distinction between committee indices and data indices, particularly for post-Electra/Gloas logic where the index field is repurposed. Key changes include renaming existing functions and introducing getDataIndexFromSingleAttestationSerialized along with corresponding unit tests. Feedback suggests making getDataIndexFromSingleAttestationSerialized fork-aware to maintain consistency with other utility functions and ensure robustness across different fork layouts.
Performance Report✔️ no performance regression detected Full benchmark results
|
|
@codex review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #9158 +/- ##
=========================================
Coverage 52.52% 52.52%
=========================================
Files 848 848
Lines 61447 61447
Branches 4528 4528
=========================================
Hits 32272 32272
Misses 29110 29110
Partials 65 65 🚀 New features to boost your workflow:
|
|
🎉 This PR is included in v1.42.0 🎉 |
Follow up to #9025 to fix attestation data index extraction, currently it seems we extract the committee index but for how we use it (post gloas), we want the
data.indexrelevant code
lodestar/packages/beacon-node/src/network/processor/index.ts
Lines 401 to 405 in e8407e9