Skip to content

fix(reth-cli): scale engine persistence defaults for 200ms blocks (v1.5.4) - #6464

Merged
0x00101010 merged 2 commits into
releases/v1.5.4from
fix/engine-persistence-defaults-v1.5.4
Nov 6, 2026
Merged

0x00101010 merged 2 commits into
releases/v1.5.4from
fix/engine-persistence-defaults-v1.5.4

Conversation

@0x00101010

Copy link
Copy Markdown
Contributor

Why

Reth's engine persistence limits are block counts sized for 2s blocks (7 / 5 / 16). At Denim's 200ms blocks they cover 10x less time, so the engine hits persistence backpressure and stalls FCU/newPayload sooner. Coinbase nodes already run 70 / 70 / 160 through deploy flags; node operators on v1.5.4 should get the same margins without setting flags.

What

  • base_reth_cli::init_engine!() sets reth's global DefaultEngineValues: persistence threshold 70, memory block buffer target 70, persistence backpressure threshold 160.
  • base, base-reth-node and base-builder-bin call it before parsing the CLI. Explicit --engine.* flags still override.

Notes

  • Every node keeps at least 70 executed blocks in memory, up to ~230 under backpressure, and replays up to that many blocks after an unclean shutdown.
  • On reth base-v2.5.2.11 state masking defaults to 0, so a buffer target equal to the threshold passes EngineArgs::validate (160 > 70, 70 <= 70).

Evidence

Review: ready | high, 90% | deep (touches node startup): claude-fable-5-1 + gpt-6-astra; one should-fix (README usage example) applied

Verified How Result
Built binary advertises the new default cargo build -p base-reth-node, base-reth-node node --help --engine.persistence-threshold [default: 70]
Effective defaults pass reth validation engine_defaults_scale_for_denim_blocks on EngineArgs::default() threshold 70, buffer 70, backpressure 160, validate() ok

@depot-code-access

depot-code-access Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

✅ All benchmarks green — 14 within ±2% (deterministic instruction counts). View run

Benchmark details (14)
Benchmark Base (target) Head (this PR) Δ instructions
batch_queue/drain/drain_cached_span_batches 242,027 242,027 +0.0%
batch_transaction/encode_in_place/encode_in_place 4,199,759 4,199,759 +0.0%
batch_transaction/temporary_frame_buffers/temporary_frame_buffers 8,408,350 8,408,350 +0.0%
flashblock_decode/decode/brotli 3,296,484 3,296,484 +0.0%
flashblock_decode/decode/plain_json 2,280,194 2,280,194 +0.0%
flz/compress_len/real_contract_call 43,148 43,148 +0.0%
flz/compress_len/synthetic_0 38,205 38,205 +0.0%
flz/compress_len/synthetic_1 54,682 54,682 +0.0%
flz/compress_len/synthetic_2 147,976 147,976 +0.0%
flz/data_gas 43,059 43,059 +0.0%
flz/tx_estimated_size 43,056 43,056 +0.0%
frame_parse/decode/single_4kib 1,031 1,031 +0.0%
frame_parse/parse_frames/few_large 1,053,062 1,053,062 +0.0%
frame_parse/parse_frames/many_small 154,763 154,763 +0.0%

@depot-code-access

Copy link
Copy Markdown

Acceptance Tests: ✅ Passed

3/3 checks passed · Checks & reports

Acceptance report
  • smoke / chain-identity — passed: chain identity matched
    • Expected: 84538453
    • Observed: 84538453
  • smoke / production — passed: head advanced
    • Expected: {"minimum_blocks":3}
    • Observed: {"delta":3,"from":14,"last":17,"required_delta":3}
  • smoke / validator-converges — passed: heads converged on a common canonical block
    • Expected: {"common_height_hash":true,"max_lag_blocks":5}
    • Observed: {"common_height":17,"hash":"0xc3f498133e7986be332a64eb237a0656c353f70377544e51038fb7a78b37ac85","high":17,"lag":0,"low":17,"low_timestamp":1793922680,"maximum_lag":5,"minimum_timestamp":0}

@0x00101010
0x00101010 merged commit 8bb377a into releases/v1.5.4 Nov 6, 2026
33 of 34 checks passed
@0x00101010
0x00101010 deleted the fix/engine-persistence-defaults-v1.5.4 branch November 6, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants