lighthouse
lighthouse copied to clipboard
`superstruct` the `AttesterSlashing`
Issue Addressed
- #5605
Proposed Changes
There's gonna be a lot of sub issues tied together in this branch as it's the only way we'll get this to compile..
just a question, why are we superstruct-ing AttestationSlashing? Is it to handle some fork boundary edge case? If so, are we going to have separate fields for the base and electra variants of IndexedAttestation?
the change in IndexedAttestation makes it necessary since slashings are included in blocks. So a deneb block needs to have the deneb IndexedAttestation and same for electra.
are we going to have separate fields for the base and electra variants of IndexedAttestation
I believe that's the plan, right @ethDreamer ?
yeah I thought the plan was to use superstruct(flatten) for the IndexedAttestation so that the types would be embedded
why are we superstruct-ing AttestationSlashing?
The change is only relevant when computing the block root. In all other codepaths the difference does not matter