perf: Skip state root calculation

This commit is contained in:
sprites0
2025-03-10 23:49:47 +00:00
parent c76ae4e1fb
commit bbed5bc27f
2 changed files with 2 additions and 33 deletions

View File

@ -587,14 +587,9 @@ where
/// Returns a state hook to be used to send state updates to this task.
pub fn state_hook(&self) -> impl OnStateHook {
let state_hook = self.state_hook_sender();
let _state_hook = self.state_hook_sender();
move |source: StateChangeSource, state: &EvmState| {
if let Err(error) =
state_hook.send(StateRootMessage::StateUpdate(source, state.clone()))
{
error!(target: "engine::root", ?error, "Failed to send state update");
}
move |_source: StateChangeSource, _state: &EvmState| {
}
}