Commit 036658b
refactor(testing): derive tiebreaker weights from the spec (leanEthereum#863)
* refactor(testing): derive tiebreaker weights from the spec
The lexicographic head check re-derived per-fork attestation weights
by walking ancestors manually, duplicating the fork choice weight
rule. A spec change to weight accounting would silently diverge from
the re-derivation and the check would assert against stale logic.
The check now asks the spec for its block weights directly, so it
can never drift from the rule it validates. The unused per-fork slot
bookkeeping disappears with the manual walk.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs(testing): polish store checks documentation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 38287b1 commit 036658b
1 file changed
Lines changed: 10 additions & 29 deletions
Lines changed: 10 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
590 | 592 | | |
591 | 593 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
| 594 | + | |
| 595 | + | |
615 | 596 | | |
616 | 597 | | |
617 | | - | |
| 598 | + | |
618 | 599 | | |
619 | | - | |
| 600 | + | |
620 | 601 | | |
621 | 602 | | |
622 | 603 | | |
| |||
625 | 606 | | |
626 | 607 | | |
627 | 608 | | |
628 | | - | |
| 609 | + | |
629 | 610 | | |
630 | 611 | | |
631 | 612 | | |
| |||
639 | 620 | | |
640 | 621 | | |
641 | 622 | | |
642 | | - | |
| 623 | + | |
643 | 624 | | |
644 | 625 | | |
645 | 626 | | |
| |||
0 commit comments