Skip to content

Commit

Permalink
fix: skip failed new payload submission (#9003)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jun 20, 2024
1 parent 13b5819 commit 135e11b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/consensus/debug-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,19 @@ impl<P: BlockProvider + Clone> DebugConsensusClient<P> {
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::<T>::new_payload_v3(
let _ = reth_rpc_api::EngineApiClient::<T>::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.
Expand Down

0 comments on commit 135e11b

Please sign in to comment.