From 135e11b19b352b5c0f12c988dabfc7ad71ab7ccc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 20 Jun 2024 23:12:20 +0200 Subject: [PATCH] fix: skip failed new payload submission (#9003) --- crates/consensus/debug-client/src/client.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/consensus/debug-client/src/client.rs b/crates/consensus/debug-client/src/client.rs index a63b7a85d704..e72f58855eeb 100644 --- a/crates/consensus/debug-client/src/client.rs +++ b/crates/consensus/debug-client/src/client.rs @@ -92,17 +92,19 @@ impl DebugConsensusClient

{ let block_hash = payload.block_hash(); let block_number = payload.block_number(); + previous_block_hashes.push(block_hash); + // Send new events to execution client - reth_rpc_api::EngineApiClient::::new_payload_v3( + let _ = reth_rpc_api::EngineApiClient::::new_payload_v3( &execution_client, payload.execution_payload_v3, payload.versioned_hashes, payload.parent_beacon_block_root, ) .await - .unwrap(); - - previous_block_hashes.push(block_hash); + .inspect_err(|err| { + warn!(target: "consensus::debug-client", %err, %block_hash, %block_number, "failed to submit new payload to execution client"); + }); // Load previous block hashes. We're using (head - 32) and (head - 64) as the safe and // finalized block hashes.