Skip to content

Add check that block is known in on_payload_attestation_message#5022

Merged
jihoonsong merged 1 commit intoethereum:masterfrom
ericsson49:fix-gloas-fc-on-pa-message
Mar 23, 2026
Merged

Add check that block is known in on_payload_attestation_message#5022
jihoonsong merged 1 commit intoethereum:masterfrom
ericsson49:fix-gloas-fc-on-pa-message

Conversation

@ericsson49
Copy link
Contributor

Currently, on_payload_attestation_message raises KeyError if data.beacon_block_root refers to unknown block.

One consequence is that expect_assertion_error won't catch the error.

Historically, block roots are validated with an explicit assert. The PR adds such a check.

@github-actions github-actions bot added the gloas label Mar 19, 2026
@ericsson49 ericsson49 changed the title Add explicit check that block is known in on_payload_attestation_message Add check that block is known in on_payload_attestation_message Mar 19, 2026
@jihoonsong jihoonsong merged commit bd791d8 into ethereum:master Mar 23, 2026
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants