chore: add state and response to miner error (#18422)

This commit is contained in:
Matthias Seitz
2025-09-13 13:32:24 +02:00
committed by GitHub
parent 99b6dc7986
commit 33c75e8e52

View File

@@ -177,13 +177,14 @@ where
/// Sends a FCU to the engine.
async fn update_forkchoice_state(&self) -> eyre::Result<()> {
let state = self.forkchoice_state();
let res = self
.to_engine
.fork_choice_updated(self.forkchoice_state(), None, EngineApiMessageVersion::default())
.fork_choice_updated(state, None, EngineApiMessageVersion::default())
.await?;
if !res.is_valid() {
eyre::bail!("Invalid fork choice update")
eyre::bail!("Invalid fork choice update {state:?}: {res:?}")
}
Ok(())