Repository navigation
fix(consensus): size sequencer catch-up buffer for fast block times - #6320
Merged
Merged
Conversation
The catch-up buffer and the regular-state external gossip gap reused the shadow reconciliation cycle limit of 300 blocks. That is ten minutes at two-second blocks but only one minute at 200ms blocks, so a follower that restarts behind the tip can finish derivation still more than 300 blocks behind the newest gossip and never connect to the buffer. Decouple the catch-up capacity from the shadow cycle limit and size it as a ten minute window divided by the block interval, computed once from the rollup config. The regular-state gossip gap uses the same capacity. Co-authored-by: Toshi <[email protected]>
Co-authored-by: Toshi <[email protected]>
Co-authored-by: Toshi <[email protected]>
|
✅ All benchmarks green — 16 within ±2% (deterministic instruction counts). View run Benchmark details (16)
|
Co-authored-by: Toshi <[email protected]>
Collaborator
✅ Heimdall Review Status
|
Collaborator
🟡 Heimdall Review Status
|
Acceptance Tests: ✅ Passed3/3 checks passed · Checks & reports Acceptance report
|
Co-authored-by: Toshi <[email protected]>
Co-authored-by: Toshi <[email protected]>
niran
marked this pull request as ready for review
October 30, 2026 19:41
meyer9
approved these changes
Nov 2, 2026
niran
added a commit
that referenced
this pull request
Nov 5, 2026
…v1.5.4 backport) (#6321) * [backport] fix(consensus): size sequencer catch-up buffer for fast block times to v1.5.2 (#6320) Co-authored-by: Toshi <[email protected]> * test(consensus): cover regular gossip gap against catch-up window Co-authored-by: Toshi <[email protected]> * test(actions): pass catch-up batch limit in shadow sequencer action test Co-authored-by: Toshi <[email protected]> --------- Co-authored-by: Toshi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Followers that restart under fast block times can fall outside the sequencer catch-up buffer and never finish catching up.
The canonical catch-up buffer (
CanonicalUnsafeCatchup) and the regular-state external gossip gap both reused the shadow reconciliation cycle limit of 300 blocks. That is ten minutes at two-second blocks but one minute at 200 ms blocks. A follower that restarts several minutes behind advances only through L1 derivation, and derivation latency (batch submission, L1 inclusion, derivation) leaves its safe head more than 300 blocks behind the newest gossip. The oldest retained payload is then never adjacent to the safe head, the contiguous suffix never connects, and catch-up stays stuck.Changes
SequencerConfig::MAX_SHADOW_BLOCKS_PER_CYCLE, which keeps governing shadow reconciliation cycles.Notes
Syncing, the consensus layer keeps its confirmed unsafe head unchanged, and the execution client may start a backfill. The old 300-block gap at two-second blocks already allowed the same ten-minute lead, so the gap stays scaled to the block cadence rather than staying at 300 blocks, which would be a liveness regression on fast-block chains.Test plan
cargo test -p base-consensus-node --lib(419 passed) andcargo clippy -p base-consensus-node --all-targets -- -D warningspass.type=routine
risk=medium
impact=sev5