-
Notifications
You must be signed in to change notification settings - Fork 103
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
*: electra versioned aggregations #3482
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## electra #3482 +/- ##
==========================================
Coverage ? 55.70%
==========================================
Files ? 218
Lines ? 33725
Branches ? 0
==========================================
Hits ? 18786
Misses ? 12966
Partials ? 1973 ☔ View full report in Codecov by Sentry. |
|
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.
Great job
err := unmarshal(typ, body, denebAtts) | ||
if err == nil { | ||
for _, att := range *denebAtts { | ||
// TODO: Data version is not Deneb, it might be anything between Phase0 and Deneb |
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.
Flagging this TODO, maybe you forgot to resolve it.
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.
Unfortunately, I haven't found a nice way yet... It's in my list for things to fix.
With other versioned structures (like blocks), we have a clunky but functional way of resolving the version - we simply try to parse all versions and whichever succeeds, we deem it is that one. However, for attestations, anything between phase0 and Deneb has the exact same structure, so this method won't really work.
* Add electra versioned aggregations * Bump go-eth2-client version and fix TODOs * Write own switch cases, instead of waiting on go-eth2-client util funcs * Fix linter * WIP * Aggregations fixes and tests updates * Fix submitAttestations parsing * Bump go-eth2-client * Fix teku integration test
* Add electra versioned aggregations * Bump go-eth2-client version and fix TODOs * Write own switch cases, instead of waiting on go-eth2-client util funcs * Fix linter * WIP * Aggregations fixes and tests updates * Fix submitAttestations parsing * Bump go-eth2-client * Fix teku integration test
* Add electra versioned aggregations * Bump go-eth2-client version and fix TODOs * Write own switch cases, instead of waiting on go-eth2-client util funcs * Fix linter * WIP * Aggregations fixes and tests updates * Fix submitAttestations parsing * Bump go-eth2-client * Fix teku integration test
* Add electra versioned aggregations * Bump go-eth2-client version and fix TODOs * Write own switch cases, instead of waiting on go-eth2-client util funcs * Fix linter * WIP * Aggregations fixes and tests updates * Fix submitAttestations parsing * Bump go-eth2-client * Fix teku integration test
* Add electra versioned aggregations * Bump go-eth2-client version and fix TODOs * Write own switch cases, instead of waiting on go-eth2-client util funcs * Fix linter * WIP * Aggregations fixes and tests updates * Fix submitAttestations parsing * Bump go-eth2-client * Fix teku integration test
Change the regular aggregations to versioned aggregations. Given that the attestation structure is changing, the one for aggregations does as well.
Some other small things included in this PR:
category: feature
ticket: none