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

Method reset

crates/consensus/engine/src/task_queue/core.rs:443–449  ·  view source on GitHub ↗

Resets the engine by finding a plausible sync starting point via [`crate::find_starting_forkchoice`]. The state will be updated to the starting point, and a forkchoice update will be enqueued in order to reorg the execution layer.

(
        &mut self,
        client: Arc<EngineClient_>,
        config: Arc<RollupConfig>,
    )

Source from the content-addressed store, hash-verified

441 /// [`crate::find_starting_forkchoice`]. The state will be updated to the starting point, and a
442 /// forkchoice update will be enqueued in order to reorg the execution layer.
443 pub async fn reset(
444 &mut self,
445 client: Arc<EngineClient_>,
446 config: Arc<RollupConfig>,
447 ) -> Result<L2BlockInfo, EngineResetError> {
448 self.reset_with_checkpoint_reader(client, config, &NoopForkchoiceCheckpointReader).await
449 }
450
451 /// Like [`Self::reset`], but consults `checkpoint_reader` when reth-labeled blocks cannot be
452 /// hydrated because their bodies have been pruned.

Callers 2

fromMethod · 0.45
fromMethod · 0.45

Calls 1

Tested by

no test coverage detected