Initializes Reth's global engine persistence defaults. Explicit `--engine.*` flags still override these values. ### Panics Panics if the engine defaults were already initialized.
()
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected