Repository navigation
fix(consensus): size sequencer catch-up buffer for fast block times (v1.5.4 backport) - #6321
Merged
Merged
Conversation
…ock times to v1.5.2 (#6320) Co-authored-by: Toshi <[email protected]>
Co-authored-by: Toshi <[email protected]>
|
✅ All benchmarks green — 14 within ±2% (deterministic instruction counts). View run Benchmark details (14)
|
Acceptance Tests: ✅ Passed3/3 checks passed · Checks & reports Acceptance report
|
Co-authored-by: Toshi <[email protected]>
niran
marked this pull request as ready for review
October 30, 2026 19:42
Contributor
|
Review summary: No actionable findings. The changes are well-scoped and correct:
Test coverage is thorough: the new tests validate capacity per block time, beyond-legacy-gap connectivity, bounded batching of the full window, retry after partial failure, and regular-state gossip gap admission/rejection at boundary values. |
meyer9
previously approved these changes
Nov 2, 2026
haardikk21
approved these changes
Nov 5, 2026
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
Backport of #6320 to
releases/v1.5.4, based on v1.5.3. The fix was first hand-ported in #6321.Followers that restart under fast block times can fall outside the sequencer catch-up buffer and never finish catching up. The catch-up buffer and the regular-state external gossip gap both reused the shadow reconciliation cycle limit of 300 blocks: ten minutes at two-second blocks, one minute at 200 ms blocks. Derivation latency leaves a restarted follower's safe head more than 300 blocks behind the newest gossip, so the buffered suffix never connects.
Changes
Hand-port notes
The release-branch coordinator differs from main by about 650 lines, so the change was ported by hand rather than cherry-picked from main. The release branch's own structure is kept intact: it has no isolated-sequencer EL sync path, and it keeps its
ConsolidateInputAPI. Only the sizing, the gap, and the batching were ported. The releasebuffer_payloadtrims both the payload and observation maps in one function, and the tests use a locally built L1-info deposit transaction in gossip payloads.In a local validation branch, all three hand-port commits applied cleanly onto the v1.5.3 tag with no conflicts. The backport does not include a version bump.
Test plan
On the local v1.5.3-based backport:
cargo +nightly fmt --check: passed.cargo test --locked -p base-consensus-node catchup -- --nocapture --test-threads=4: 30 passed.cargo test --locked -p base-consensus-node -- --test-threads=4: 380 unit and 10 integration tests passed; one doctest ignored.cargo test --locked -p base-consensus-engine -- --test-threads=4: 142 unit tests and one doctest passed; two doctests ignored.cargo test --locked -p base-action-harness --test shadow_sequencer -- --test-threads=4: one action test passed.cargo clippy -p base-consensus-node --all-targets -- -D warningsclean; independent reviews of the main PR reported 419 library tests passing there. Clippy on the local v1.5.3-based backport was interrupted and remains to be run.After merge
v1.5.4-rc.2, and an independent artifact build.type=emergency
risk=medium
impact=sev3