Repository navigation
Conversation
…rsisted window reth v2.10.1 raises the default persistence_backpressure_threshold to 100. With memory_block_buffer_target at 5, a crash can regress the EL head by up to 105 blocks, above the current limit of 32. A gap that wide is refused outright and the node stops catching up. Raise backfillMaxDepth to 128 and backfillCacheCapacity to 256. State masking does not add to the ceiling: masked blocks stay in memory and count against the backpressure threshold, and a restart after a crash unwinds to the start of the masked suffix. Claude-Session: https://claude.ai/code/session_01UaJCgZJEQM11Ymk1kqg62A
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
backfillMaxDepthbounds how far the execution layer's head may have regressed when aparent-not-foundtriggers a replay. #45 raised it to 32 for reth v2.5.2. morph-reth is moving to reth v2.10.1 (morph-l2/morph-reth#229), where the persistence defaults changed again. The ceiling is stillpersistence_backpressure_threshold + memory_block_buffer_target:At 32, a crash on v2.10.1 defaults that loses 33–105 blocks makes recovery a no-op: nothing is applied, the node logs
Backfill refused: gap exceeds backfillMaxDepth, and it stops catching up.State masking, which v2.10.1 enables by default (30 blocks), does not add to the ceiling. Masked blocks stay in the in-memory canonical chain and count against the backpressure threshold, and a restart after a crash unwinds to the start of the masked suffix.
Changes
backfillMaxDepth32 → 128. Covers the v2.10.1 ceiling with margin.backfillCacheCapacity64 → 256. Keeps the cache at twice the depth, as before.TestStateV2_Backfill_DepthBoundarygets a case for the 105-block v2.10.1 ceiling, and the constant's comment records the new numbers and the state-masking behaviour.Memory: once a node has caught up, the same
*BlockV2objects are already held byrecentBlocks(capacity 1000), so the larger cache retains no extra blocks. During blocksync only this cache holds them, which is at most 256 × 720 KiB = 180 MiB if every block is full.Verification
go test ./sequencer/... -race -count=1— passgo vet ./sequencer/...,go build ./...— cleanThe new case is a genuine regression test. Against the old value it fails with
The 105-block ceiling comes from reading the reth v2.10.1 source (
crates/engine/primitives/src/config.rs,crates/engine/tree/src/tree/mod.rs,crates/node/builder/src/launch/common.rs). It has not been reproduced with a live crash.Not addressed here
A deployment that tunes the EL above 128 (for example
--engine.persistence-backpressure-threshold 512) still disables recovery and gets the explicit refusal log, the same limitation described in #45.morph-l2/morphneeds a tendermint dependency bump innode/go.modto pick this up.Follow-up to #43 and #45.
https://claude.ai/code/session_01UaJCgZJEQM11Ymk1kqg62A