Commit 4bafe67
committed
fix(fast-inbox): source the checkpoint bucket hint from the streaming cursor (A-1384)
When a checkpoint builds several blocks in one slot and the final sub-slot block fails to
build after earlier blocks already consumed L1-to-L2 messages, no block is held for
broadcast, so the L1 propose bucket hint fell back to genesis bucket 0 while the checkpoint
header committed to a non-genesis rolling hash — L1 rejects this as Rollup__InvalidInboxRollingHash.
Take the hint from the streaming consumption cursor's final bucket reference, which is always
defined and always matches the bucket the header committed to, and carry it through the
broadcast result. Behavior-preserving on the normal held-block path (block bucket refs are
cumulative, so the held last block's ref already equals the cursor's). Adds a regression test
for the no-held-block checkpoint.1 parent 4b91fa1 commit 4bafe67
2 files changed
Lines changed: 65 additions & 5 deletions
File tree
- yarn-project/sequencer-client/src/sequencer
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1496 | 1539 | | |
1497 | 1540 | | |
1498 | 1541 | | |
| |||
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| |||
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
313 | | - | |
314 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
315 | 325 | | |
316 | 326 | | |
317 | 327 | | |
| |||
834 | 844 | | |
835 | 845 | | |
836 | 846 | | |
837 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
838 | 853 | | |
839 | 854 | | |
840 | 855 | | |
| |||
888 | 903 | | |
889 | 904 | | |
890 | 905 | | |
891 | | - | |
892 | | - | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
893 | 910 | | |
894 | 911 | | |
895 | 912 | | |
| |||
0 commit comments