Skip to content

Fix check_consensus_attestation_stats: post-Electra & support for minimal network - #202

Merged
pk910 merged 3 commits into
ethpandaops:masterfrom
syjn99:fix/check_consensus_attestation_stats
Jul 2, 2026
Merged

pk910 merged 3 commits into
ethpandaops:masterfrom
syjn99:fix/check_consensus_attestation_stats

Conversation

@syjn99

@syjn99 syjn99 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

06b7f96: aggregationBitsOffset is accumulated in every loop body, but never used in calculation. Fixing this for post-Electra.
715a92e: If MAX_COMMITTEES_PER_SLOT is 4, len(committeeBits) is just 1, so BitAt for Bitvector64 will always fail because of the gate: len(b) != bitvector64ByteSize. This was critical for my local setup as I'm using assertoor for minimal network.

@pk910
pk910 merged commit c6f6ac6 into ethpandaops:master Jul 2, 2026
6 checks passed
SyedMuhamadYasir pushed a commit to SyedMuhamadYasir/erigon that referenced this pull request Oct 16, 2026
Re-enable the Glamsterdam Kurtosis stability check and remove the stale
alpha.8 comment. CI will check finality, attestation participation,
reorgs, and forks alongside block proposals.

The pinned `ethpandaops/assertoor:v0.1.3` image reports commit
`33c0ed3`, which includes
[ethpandaops/assertoor#202](ethpandaops/assertoor#202).
That fix reads minimal-preset committee bits correctly and uses the
aggregation offset when counting votes across committees. No dependency
update is needed.

Fixes erigontech#21442.

Validation:

- `make lint`: three clean runs.
- `make erigon integration`: passed.
- Built the local Erigon/Caplin Docker image and ran the updated
configuration with Kurtosis `1.20.0` and `ethereum-package@6.1.0` on
macOS/ARM64.
- The fresh rerun passed all stability tasks and the block-proposal
check. The passing epoch had 100% target, head, and total votes. All
three execution nodes kept advancing during a ten-minute observation.

The first local run failed `check_consensus_forks` with `too many forks:
1` while clients reported different heads at slots 12 and 13. Lighthouse
logged late blocks and attestations around that failure. The passing
rerun also logged a `wrong head block` error while building a PoS block.
The causes are not established, so the passing rerun does not prove
reliability in CI. CI validation is still pending. All existing
assertions and thresholds remain enabled.

TDD exception: this changes configuration only and reuses the existing
integration tests.
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