Skip to content

remove pre-Electra block production, attestation handling leftovers#7959

Open
arnetheduck wants to merge 7 commits intounstablefrom
rm-pre-elec-block-prod
Open

remove pre-Electra block production, attestation handling leftovers#7959
arnetheduck wants to merge 7 commits intounstablefrom
rm-pre-elec-block-prod

Conversation

@arnetheduck
Copy link
Member

#7550 removed the ability to pack pre-Electra attestations in the attestation pool effectively removing the ability to create meaningful pre-Electra blocks - as such, there is little point in keeping the rest of the associated infrastructure around.

  • refactor attestation pool to further remove phase0-based logic
  • drop single-vote attestations after creating full committee aggregate
  • simplify attestation cache key for block production (no need to include slot twice)
  • avoid the use of AttestationData in AttestationEntry since they are no longer logically related (the latter is partitioned by committee index, the former is not)
  • restore updates of last-voted-epoch for post-electra attestations and ignore duplicates based on it
  • fix missing log data in "Dropping" logs (logScope does not work in generic functions) (fixes Logs flooding with line Dropping aggregate #7795)
  • remove handlers/validators for pre-Electra attestation/aggregate gossip
  • update gossip tests to cover post-Electra attestations
  • remove pre-electra block production code paths in beacon node
  • gossip fork checks based on message slot rather than wall time
  • remove internal routing of on-chain attestation (obviously should never happen)

#7550 removed the ability
to pack pre-Electra attestations in the attestation pool effectively
removing the ability to create meaningful pre-Electra blocks - as such,
there is little point in keeping the rest of the associated
infrastructure around.

* refactor attestation pool to further remove phase0-based logic
* drop single-vote attestations after creating full committee aggregate
* simplify attestation cache key for block production (no need to
include slot twice)
* avoid the use of `AttestationData` in `AttestationEntry` since they
are no longer logically related (the latter is partitioned by committee
index, the former is not)
* restore updates of last-voted-epoch for post-electra attestations and
ignore duplicates based on it
* fix missing log data in "Dropping" logs (`logScope` does not work in
generic functions) (fixes #7795)
* remove handlers/validators for pre-Electra attestation/aggregate
gossip
* update gossip tests to cover post-Electra attestations
* remove pre-electra block production code paths in beacon node
* gossip fork checks based on message slot rather than wall time
* remove internal routing of on-chain attestation (obviously should
never happen)
@github-actions
Copy link

github-actions bot commented Feb 11, 2026

Unit Test Results

       12 files  ±0    2 440 suites  ±0   46m 39s ⏱️ - 2m 39s
12 883 tests ±0  12 336 ✔️ ±0  547 💤 ±0  0 ±0 
65 224 runs  ±0  64 514 ✔️ ±0  710 💤 ±0  0 ±0 

Results for commit 97da6c3. ± Comparison against base commit 321e38f.

♻️ This comment has been updated with latest results.

@arnetheduck arnetheduck changed the title remove pre-Electra block proudction, attestation handling leftovers remove pre-Electra block production, attestation handling leftovers Feb 12, 2026
@tersec
Copy link
Contributor

tersec commented Feb 14, 2026

Merge conflict in tests/test_attestation_pool.nim

@arnetheduck
Copy link
Member Author

97da6c3

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