Skip to content

clean up attestation index iteration#7999

Merged
tersec merged 3 commits intounstablefrom
att-iter-cleanup
Feb 19, 2026
Merged

clean up attestation index iteration#7999
tersec merged 3 commits intounstablefrom
att-iter-cleanup

Conversation

@arnetheduck
Copy link
Member

Following the removal of gossip support for phase0 attestations we can clean up how we iterate over attestations, removing the single-attestation phase0 forms.

Also, since the electra network attestation format is a special case of the on-chain format, we can reuse the latter in the iteration helpers for the former, getting rid of the on-chain flag.

Finally, we can also avoid some memory allocations by not constructing an in-memory copy of the committee and instead iterate over its indices in-place.

Following the removal of gossip support for phase0 attestations we can
clean up how we iterate over attestations, removing the
single-attestation phase0 forms.

Also, since the electra network attestation format is a special case of
the on-chain format, we can reuse the latter in the iteration helpers
for the former, getting rid of the on-chain flag.

Finally, we can also avoid some memory allocations by not constructing
an in-memory copy of the committee and instead iterate over its indices
in-place.
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

Unit Test Results

       12 files  ±  0    2 444 suites  +4   55m 47s ⏱️ + 4m 38s
12 893 tests +10  12 346 ✔️ +10  547 💤 ±0  0 ±0 
65 264 runs  +40  64 554 ✔️ +40  710 💤 ±0  0 ±0 

Results for commit e28c2b7. ± Comparison against base commit 4211736.

♻️ This comment has been updated with latest results.

@tersec tersec enabled auto-merge (squash) February 18, 2026 14:32
@tersec tersec disabled auto-merge February 18, 2026 17:05
@tersec tersec enabled auto-merge (squash) February 18, 2026 23:22
@tersec tersec merged commit 93e5fdb into unstable Feb 19, 2026
11 checks passed
@tersec tersec deleted the att-iter-cleanup branch February 19, 2026 01:16
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.

2 participants

Comments