Skip to main content

Module config

Module config 

Source
Available on crate feature node-api only.
Expand description

Engine tree configuration.

Structs§

TreeConfig
The configuration of the engine tree.

Constants§

DEFAULT_BACKFILL_RUN_THRESHOLD
The largest gap for which the tree will be used to sync individual blocks by downloading them.
DEFAULT_INVALID_HEADER_HIT_EVICTION_THRESHOLD
Default number of cache hits before an invalid header entry is evicted and reprocessed.
DEFAULT_MEMORY_BLOCK_BUFFER_TARGET
How close to the canonical head we persist blocks.
DEFAULT_MULTIPROOF_TASK_CHUNK_SIZE
The size of proof targets chunk to spawn in one multiproof calculation.
DEFAULT_NUM_STATE_MASKING_BLOCKS
Number of persisted blocks whose state/trie writes are masked by an in-memory suffix.
DEFAULT_PERSISTENCE_THRESHOLD
Triggers persistence when the number of canonical blocks in memory exceeds this threshold.
DEFAULT_RESERVED_CPU_CORES
Default number of reserved CPU cores for non-reth processes.
DEFAULT_SPARSE_TRIE_PRUNE_DEPTH
Default depth for sparse trie pruning.
DEFAULT_STATE_ROOT_TASK_TIMEOUT
Default timeout for the state root task before spawning a sequential fallback.
MAX_BACKFILL_RUN_THRESHOLD
Largest supported live-sync gap, matching the peer header response limit of 1024.
MIN_PERSISTENCE_BACKPRESSURE_THRESHOLD
The engine stalls API processing when this many blocks are awaiting persistence beyond the in-memory buffer target.
SMALL_BLOCK_GAS_THRESHOLD
Gas threshold below which the small block chunk size is used.

Functions§

has_enough_parallelism
Determines if the host has enough parallelism to run the payload processor.