Skip to content

feat: attestation index=1 requires FULL variant (consensus-specs#4918)#10

Open
lodekeeper wants to merge 1 commit intounstablefrom
feat/attestation-full-variant-check
Open

feat: attestation index=1 requires FULL variant (consensus-specs#4918)#10
lodekeeper wants to merge 1 commit intounstablefrom
feat/attestation-full-variant-check

Conversation

@lodekeeper
Copy link
Owner

Motivation

Attestation with index=1 (full node) must require the FULL variant to exist, per ethereum/consensus-specs#4918.

Changes

  • Add validation in validate_on_attestation: if attesting for index=1, payload must be known
  • Add UNKNOWN_PAYLOAD_STATUS error code to InvalidAttestationCode

Split from alpha.3 upgrade PR #6.

Attestation with index=1 (full node) now requires the FULL variant to
exist in the proto-array. Throws UNKNOWN_PAYLOAD_STATUS if payload has
not been seen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant