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>,
)
| 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. |
no test coverage detected