mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: dont panic on invalud fcu response (#8725)
This commit is contained in:
@ -130,17 +130,20 @@ impl<P: BlockProvider + Clone> DebugConsensusClient<P> {
|
||||
continue;
|
||||
}
|
||||
};
|
||||
reth_rpc_api::EngineApiClient::<T>::fork_choice_updated_v3(
|
||||
&execution_client,
|
||||
reth_rpc_types::engine::ForkchoiceState {
|
||||
let state = reth_rpc_types::engine::ForkchoiceState {
|
||||
head_block_hash: block_hash,
|
||||
safe_block_hash,
|
||||
finalized_block_hash,
|
||||
},
|
||||
};
|
||||
let _ = reth_rpc_api::EngineApiClient::<T>::fork_choice_updated_v3(
|
||||
&execution_client,
|
||||
state,
|
||||
None,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
.inspect_err(|err| {
|
||||
warn!(target: "consensus::debug-client", %err, ?state, "failed to submit fork choice update to execution client");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user