From e7b13a9bbbab7fb3599c94b698cdf2b489cd46d6 Mon Sep 17 00:00:00 2001 From: Joseph Zhao Date: Wed, 15 Jan 2025 14:05:49 +0800 Subject: [PATCH] fix errors --- crates/engine/tree/src/tree/mod.rs | 2 +- crates/optimism/payload/src/builder.rs | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/engine/tree/src/tree/mod.rs b/crates/engine/tree/src/tree/mod.rs index d5706193301f..842d8470672a 100644 --- a/crates/engine/tree/src/tree/mod.rs +++ b/crates/engine/tree/src/tree/mod.rs @@ -2463,7 +2463,7 @@ where debug!(target: "engine::tree", ?root_elapsed, block=?sealed_block.num_hash(), "Calculated state root"); let executed: ExecutedBlock = ExecutedBlock { - block: Arc::new(block.clone()), + block: Arc::new(block), execution_output: Arc::new(ExecutionOutcome::from((output, block_number))), hashed_state: Arc::new(hashed_state), trie: Arc::new(trie_output), diff --git a/crates/optimism/payload/src/builder.rs b/crates/optimism/payload/src/builder.rs index 505843370a14..8af42d1fe540 100644 --- a/crates/optimism/payload/src/builder.rs +++ b/crates/optimism/payload/src/builder.rs @@ -438,8 +438,13 @@ where // create the executed block data let executed: ExecutedBlock = ExecutedBlock { - block: sealed_block.clone(), - senders: Arc::new(info.executed_senders), + block: Arc::new( + , + > as Clone>::clone(&sealed_block) + .try_recover() + .expect("failed to recover block"), + ), execution_output: Arc::new(execution_outcome), hashed_state: Arc::new(hashed_state), trie: Arc::new(trie_output),