mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
feat(engine): set default_memory_block_buffer_target to zero (#17963)
This commit is contained in:
@@ -786,7 +786,7 @@ Engine:
|
||||
--engine.memory-block-buffer-target <MEMORY_BLOCK_BUFFER_TARGET>
|
||||
Configure the target number of blocks to keep in memory
|
||||
|
||||
[default: 2]
|
||||
[default: 0]
|
||||
|
||||
--engine.legacy-state-root
|
||||
Enable legacy state root
|
||||
|
||||
@@ -80,9 +80,8 @@ let factory = EthereumNode::provider_factory_builder()
|
||||
Reth buffers new blocks in memory before persisting them to disk for performance optimization. If your external process needs immediate access to the latest blocks, configure the node to persist blocks immediately:
|
||||
|
||||
- `--engine.persistence-threshold 0` - Persists new canonical blocks to disk immediately
|
||||
- `--engine.memory-block-buffer-target 0` - Disables in-memory block buffering
|
||||
|
||||
Use both flags together to ensure external processes can read new blocks without delay.
|
||||
Using this flag ensures external processes can read new blocks without delay.
|
||||
|
||||
As soon as the reth process has persisted the block data, the external reader can read it from the database.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user