Skip to content

fix(testing): use AggregationBits.from_indices in multi-message proofs#813

Merged
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:fix/multi-message-proofs-from-indices
Jun 1, 2026
Merged

fix(testing): use AggregationBits.from_indices in multi-message proofs#813
tcoratger merged 1 commit into
leanEthereum:mainfrom
tcoratger:fix/multi-message-proofs-from-indices

Conversation

@tcoratger
Copy link
Copy Markdown
Collaborator

Summary

main currently fails type checking. The multi-message proof fixture calls ValidatorIndices(...).to_aggregation_bits(), but that method was removed in #809 when the index→bits logic moved onto AggregationBits.from_indices(...).

The two PRs landed in an unlucky order:

The result is a dangling call on main:

error[unresolved-attribute]: Object of type `ValidatorIndices` has no attribute `to_aggregation_bits`
 --> packages/testing/src/consensus_testing/test_fixtures/verify_multi_message_proofs.py:174

This applies the same fix #809 used everywhere else: build the participation bitfield directly from the indices via AggregationBits.from_indices(validator_indices), and drop the now-unused ValidatorIndices import.

Testing

  • just lint (ruff) — passed
  • just typecheck (ty) — passed (was failing on main before this change)

🤖 Generated with Claude Code

The multi-message proof fixture still built a throwaway index list and
called the conversion method that was removed when the index-to-bits logic
moved onto the aggregation-bits constructor. The two changes landed in a
merge order that left a call to the deleted method, so type checking failed
on the main branch.

Build the participation bitfield directly from the indices and drop the now
unused import.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tcoratger tcoratger merged commit d3a8523 into leanEthereum:main Jun 1, 2026
10 of 13 checks passed
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.

1 participant