Commit 9e80502
feat(fast-inbox): make streaming the only node consumption path (A-1384)
Remove the streamingInbox flag and wire streaming as the sole path (AZIP-22 Fast
Inbox):
- Config: drop streamingInbox from foundation env vars, stdlib sequencer/validator
config + schemas, and the sequencer/validator config plumbing.
- Sequencer: source the parent checkpoint's consumed bucket from the fork's
L1-to-L2 tree leaf count + getInboxBucketByTotalMsgCount (cross-checkpoint, not
genesis-only); feed the header/block inHash zero; relax waitForMinTxs for
message-only blocks; pass the consumed bucket seq as the propose bucketHint.
Automine selects its single block's bundle the same way.
- Validator: per-block acceptance and checkpoint re-execution always run; the
checkpoint rebuild derives the consumed message list from the buckets between the
parent checkpoint's position and the last block.
- World state: appendL1ToL2MessagesToTree and handleL2BlockAndMessages append real
leaves at compact indices; the synchronizer derives each block's bundle from its
leaf-index range.
- Lightweight checkpoint builder feeds the checkpoint inHash zero.
Legacy bulk-fetch/insert paths go dead (deleted in FI-18). Verified via jest:
validator proposal_handler (34) + streaming checks (14), sequencer inbox selector
(9), world-state native (56). tsc rides CI.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent eafd9b8 commit 9e80502
18 files changed
Lines changed: 218 additions & 219 deletions
File tree
- yarn-project
- foundation/src/config
- prover-client/src/light
- sequencer-client/src
- publisher
- sequencer
- automine
- stdlib/src
- config
- interfaces
- messaging
- validator-client/src
- world-state/src
- native
- synchronizer
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | 385 | | |
387 | 386 | | |
388 | 387 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
1404 | 1406 | | |
1405 | 1407 | | |
1406 | 1408 | | |
| 1409 | + | |
1407 | 1410 | | |
1408 | 1411 | | |
1409 | 1412 | | |
| |||
1418 | 1421 | | |
1419 | 1422 | | |
1420 | 1423 | | |
| 1424 | + | |
1421 | 1425 | | |
1422 | 1426 | | |
1423 | 1427 | | |
| |||
1588 | 1592 | | |
1589 | 1593 | | |
1590 | 1594 | | |
| 1595 | + | |
1591 | 1596 | | |
1592 | 1597 | | |
1593 | 1598 | | |
| |||
Lines changed: 43 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
447 | 451 | | |
448 | 452 | | |
449 | 453 | | |
450 | | - | |
451 | | - | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| |||
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
471 | 497 | | |
472 | 498 | | |
473 | 499 | | |
474 | 500 | | |
475 | | - | |
| 501 | + | |
476 | 502 | | |
477 | 503 | | |
478 | 504 | | |
479 | 505 | | |
| 506 | + | |
480 | 507 | | |
481 | 508 | | |
482 | 509 | | |
| |||
489 | 516 | | |
490 | 517 | | |
491 | 518 | | |
| 519 | + | |
492 | 520 | | |
493 | 521 | | |
494 | 522 | | |
| |||
516 | 544 | | |
517 | 545 | | |
518 | 546 | | |
519 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
520 | 553 | | |
521 | 554 | | |
522 | 555 | | |
| |||
756 | 789 | | |
757 | 790 | | |
758 | 791 | | |
| 792 | + | |
759 | 793 | | |
760 | 794 | | |
761 | 795 | | |
762 | 796 | | |
763 | 797 | | |
764 | | - | |
765 | | - | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
766 | 801 | | |
767 | 802 | | |
768 | 803 | | |
| 804 | + | |
769 | 805 | | |
770 | 806 | | |
771 | 807 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1389 | 1389 | | |
1390 | 1390 | | |
1391 | 1391 | | |
1392 | | - | |
| 1392 | + | |
1393 | 1393 | | |
1394 | 1394 | | |
1395 | | - | |
1396 | 1395 | | |
1397 | 1396 | | |
1398 | 1397 | | |
| |||
0 commit comments