MCPcopy Create free account
hub / github.com/base/base / init_engine

Method init_engine

crates/utilities/reth-cli/src/engine.rs:24–30  ·  view source on GitHub ↗

Initializes Reth's global engine persistence defaults. Explicit `--engine.*` flags still override these values. ### Panics Panics if the engine defaults were already initialized.

()

Source from the content-addressed store, hash-verified

22 ///
23 /// Panics if the engine defaults were already initialized.
24 pub fn init_engine() {
25 DefaultEngineValues::default()
26 .with_persistence_threshold(PERSISTENCE_THRESHOLD)
27 .with_persistence_backpressure_threshold(PERSISTENCE_BACKPRESSURE_THRESHOLD)
28 .try_init()
29 .expect("failed to initialize engine defaults");
30 }
31}
32
33/// Initializes Reth's global engine persistence defaults.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected