Skip to content

Comments

Fork aware Attestation ssz decoding#8881

Open
hopinheimer wants to merge 3 commits intosigp:unstablefrom
hopinheimer:fork-aware-attestation-decode
Open

Fork aware Attestation ssz decoding#8881
hopinheimer wants to merge 3 commits intosigp:unstablefrom
hopinheimer:fork-aware-attestation-decode

Conversation

@hopinheimer
Copy link
Member

Issue Addressed

@pk910 mentioned that we are not decoding based on the current fork and defaulting to latest fork. This is a nice to have change for testing purposes

}
}

pub fn from_ssz_bytes_for_fork(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix the bug that was reported we probably also need to use this func in the network layer.

}

/*
impl<'de, E: EthSpec> ContextDeserialize<'de, ForkName> for Vec<Attestation<E>> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commented out code could be revived or deleted as part of this PR too.

@michaelsproul michaelsproul added bug Something isn't working consensus An issue/PR that touches consensus code, such as state_processing or block verification. Networking labels Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working consensus An issue/PR that touches consensus code, such as state_processing or block verification. Networking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants