Commit dddd3c6
committed
fix(sequencer): bind vote-only multicalls to target slot under pipelining
Slashing votes are EIP-712-signed for `targetSlot` (the pipelined proposal
slot, not the wall-clock slot) and submitted via Multicall3.aggregate3 with
allowFailure: true. The contract verifies the signature against
getCurrentSlot() derived from block.timestamp, so the multicall must mine in
the slot the vote was signed for or the inner sub-call reverts silently and
VoteCast is never emitted.
Two paths in the sequencer were sending vote-only multicalls without delaying
submission to the target-slot start:
1. CheckpointProposalJob.execute() if (!broadcast) branch — proposer
enqueued votes but did not build a checkpoint.
2. Sequencer.tryVoteWhenSyncFails — proposer enqueued votes in a slot where
archiver sync had not caught up.
Both now route through `sendRequestsAt(getTimestampForSlot(targetSlot))` when
proposer pipelining is enabled. The sync-failure path uses fire-and-forget so
the wait does not block the sequencer's work loop.
Test fixes for the same regression:
- end-to-end/src/e2e_p2p/data_withholding_slash.test.ts now relies on the
product fix; awaitCommitteeKicked is given 4x round-length headroom in
shared.ts so a later round can execute the slash if individual rounds
miss quorum due to canPropose `InvalidArchive` races (a separate
pipelining issue tracked as product debt).
- end-to-end/src/e2e_p2p/add_rollup.test.ts swaps `waitForProven` for an
EpochTestSettler that drives the proven tip via cheat codes (the real
prover currently fails under pipelining with a Root rollup public inputs
mismatch — out of scope here). Also waits for the new rollup to publish
its first checkpoint before the second bridging step so the PXE wallet
does not anchor at the now-expired genesis block.1 parent f9dcfd7 commit dddd3c6
5 files changed
Lines changed: 82 additions & 7 deletions
File tree
- yarn-project
- aztec-node/src/aztec-node
- end-to-end/src/e2e_p2p
- sequencer-client/src/sequencer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | 422 | | |
424 | 423 | | |
425 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
70 | 78 | | |
71 | 79 | | |
72 | 80 | | |
| |||
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| 113 | + | |
| 114 | + | |
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
| |||
268 | 278 | | |
269 | 279 | | |
270 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
271 | 293 | | |
272 | 294 | | |
273 | 295 | | |
| |||
583 | 605 | | |
584 | 606 | | |
585 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
586 | 622 | | |
587 | 623 | | |
588 | 624 | | |
589 | 625 | | |
590 | 626 | | |
591 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
592 | 643 | | |
593 | 644 | | |
594 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
202 | 207 | | |
203 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
204 | 213 | | |
205 | 214 | | |
206 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
776 | 789 | | |
777 | 790 | | |
778 | 791 | | |
| |||
0 commit comments