Skip to content

Commit 9db7d66

Browse files
tcoratgerclaude
andauthored
test: pin equal-slot LMD tie determinism across hash seeds (leanEthereum#1025)
State the invariant that all proofs under one attestation data share a slot, so the strict slot comparison never overwrites between them and native set iteration order is non-consensus. The equal-slot equivocation vectors plus the cross-hash-seed determinism check already prove an identical head; this comment locks the reasoning at the loop a future refactor could break. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 07234f4 commit 9db7d66

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lean_spec/spec/forks/lstar/fork_choice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,9 @@ def extract_attestations_from_aggregated_payloads(
668668
if attestation_data.head.slot <= latest_finalized_slot:
669669
continue
670670

671+
# Every proof here shares one attestation data, so they share one slot.
672+
# The strict slot comparison below never overwrites between them.
673+
# Set iteration order is therefore non-consensus and safe to leave native.
671674
for proof in proofs:
672675
for validator_index in proof.participants.to_validator_indices():
673676
# Keep this vote only when it is newer than the one already stored.

0 commit comments

Comments
 (0)