mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-10 06:55:10 -05:00
feat(engine): add error logging in state_hook (#13252)
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
This commit is contained in:
@@ -283,7 +283,9 @@ where
|
||||
let state_hook = StateHookSender::new(self.tx.clone());
|
||||
|
||||
move |state: &EvmState| {
|
||||
let _ = state_hook.send(StateRootMessage::StateUpdate(state.clone()));
|
||||
if let Err(error) = state_hook.send(StateRootMessage::StateUpdate(state.clone())) {
|
||||
error!(target: "engine::root", ?error, "Failed to send state update");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user