Commit 653c790
committed
lstar: do not skip trivial inputs when aggregate() serves block building
The fill-ci failures were caused by applying the aggregator-role
``1 raw + 0 children`` skip unconditionally inside ``aggregate()``.
The consensus-testing ``BlockSpec`` filler calls ``spec.aggregate(store)``
before ``build_block()`` to fold gossip sigs into
``latest_known_aggregated_payloads``. Many fork-choice fixture tests seed
single-validator attestations that way; skipping them broke head selection,
reorg depth, and the MAX_ATTESTATIONS_DATA rejection case.
Add ``skip_trivial_inputs: bool = True`` to ``aggregate()``:
- Interval-2 aggregator ticks (``tick_interval``) keep the default and skip
trivial inputs — the intended #747 optimization.
- Block-building simulation passes ``skip_trivial_inputs=False`` so every
gossip sig the proposer seeded is aggregated into known payloads before
``build_block()`` runs.
Verified locally: all 9 previously failing fill tests pass.1 parent ebf803e commit 653c790
2 files changed
Lines changed: 25 additions & 23 deletions
File tree
- packages/testing/src/consensus_testing/test_types
- src/lean_spec/forks/lstar
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1603 | 1603 | | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | | - | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
1607 | 1612 | | |
1608 | 1613 | | |
1609 | 1614 | | |
1610 | 1615 | | |
1611 | 1616 | | |
1612 | 1617 | | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1613 | 1627 | | |
1614 | 1628 | | |
1615 | 1629 | | |
| |||
1676 | 1690 | | |
1677 | 1691 | | |
1678 | 1692 | | |
1679 | | - | |
1680 | | - | |
| 1693 | + | |
1681 | 1694 | | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
1693 | | - | |
1694 | | - | |
1695 | | - | |
1696 | | - | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
| 1695 | + | |
1701 | 1696 | | |
1702 | 1697 | | |
1703 | 1698 | | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1704 | 1706 | | |
1705 | 1707 | | |
1706 | 1708 | | |
| |||
0 commit comments