Skip to content

Add Gloas test for get_attestation_participation_flag_indices#5341

Open
brech1 wants to merge 2 commits into
ethereum:masterfrom
brech1:test/process-attestation-same-slot
Open

Add Gloas test for get_attestation_participation_flag_indices#5341
brech1 wants to merge 2 commits into
ethereum:masterfrom
brech1:test/process-attestation-same-slot

Conversation

@brech1
Copy link
Copy Markdown
Member

@brech1 brech1 commented Jun 6, 2026

Description

This PR adds a test for the Gloas same-slot path in get_attestation_participation_flag_indices, where payload_matches is set to True regardless of execution_payload_availability.

It also removes three tests that didn't correctly cover the rule they had to.

Changes

  • Add test_same_slot_attestation_ignores_payload_availability.
  • Remove test_matching_payload_true_same_slot: availability and data.index were both 0, so a broken comparison would still return True.
  • Remove test_matching_payload_true_historical_slot: the attestation was included too late for TIMELY_HEAD_FLAG_INDEX to ever be set, so the head-flag assertion could not fail.
  • Remove test_matching_payload_false_historical_slot: the beacon_block_root did not match the head root, so the head flag was already off. test_mismatched_payload_no_head_flag already covers this case cleanly.

@github-actions github-actions Bot added the testing CI, actions, tests, testing infra label Jun 6, 2026
@brech1 brech1 force-pushed the test/process-attestation-same-slot branch from 64b884f to de917b9 Compare June 6, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing CI, actions, tests, testing infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant