diff --git a/crates/exex/exex/src/backfill/job.rs b/crates/exex/exex/src/backfill/job.rs index 5888368e3c20..0a2be83d6f61 100644 --- a/crates/exex/exex/src/backfill/job.rs +++ b/crates/exex/exex/src/backfill/job.rs @@ -122,7 +122,7 @@ where // TODO(alexey): report gas metrics using `block.header.gas_used` // Seal the block back and save it - blocks.push(block.seal(hash)); + blocks.push(block.seal_unchecked(hash)); // Check if we should commit now let bundle_size_hint = executor.size_hint().unwrap_or_default() as u64; diff --git a/crates/optimism/rpc/src/eth/pending_block.rs b/crates/optimism/rpc/src/eth/pending_block.rs index 01c2264063e7..37df1e85dff7 100644 --- a/crates/optimism/rpc/src/eth/pending_block.rs +++ b/crates/optimism/rpc/src/eth/pending_block.rs @@ -69,7 +69,7 @@ where .block_with_senders(block_id, Default::default()) .map_err(Self::Error::from_eth_err)? .ok_or(EthApiError::HeaderNotFound(block_id.into()))? - .seal(latest.hash()); + .seal_unchecked(latest.hash()); let receipts = self .provider() diff --git a/crates/primitives/src/block.rs b/crates/primitives/src/block.rs index 27431b5e6903..14ed9081730c 100644 --- a/crates/primitives/src/block.rs +++ b/crates/primitives/src/block.rs @@ -187,7 +187,7 @@ impl BlockWithSenders { /// /// WARNING: This method does not perform validation whether the hash is correct. #[inline] - pub fn seal(self, hash: B256) -> SealedBlockWithSenders { + pub fn seal_unchecked(self, hash: B256) -> SealedBlockWithSenders { let Self { block, senders } = self; SealedBlockWithSenders:: { block: block.seal(hash), senders } } diff --git a/crates/stages/stages/src/stages/execution.rs b/crates/stages/stages/src/stages/execution.rs index 685b0abb9e60..444874e8e4a2 100644 --- a/crates/stages/stages/src/stages/execution.rs +++ b/crates/stages/stages/src/stages/execution.rs @@ -428,7 +428,7 @@ where if !blocks.is_empty() { let blocks = blocks.into_iter().map(|block| { let hash = block.header().hash_slow(); - block.seal(hash) + block.seal_unchecked(hash) }); let previous_input = diff --git a/crates/storage/provider/src/providers/blockchain_provider.rs b/crates/storage/provider/src/providers/blockchain_provider.rs index 722fb5140d4b..8abc048d8354 100644 --- a/crates/storage/provider/src/providers/blockchain_provider.rs +++ b/crates/storage/provider/src/providers/blockchain_provider.rs @@ -2577,7 +2577,7 @@ mod tests { .unseal::() .with_recovered_senders() .unwrap() - .seal(block.hash()) + .seal_unchecked(block.hash()) ) ), (BlockHashOrNumber::Number(u64::MAX), TransactionVariant::WithHash) @@ -2593,7 +2593,7 @@ mod tests { .unseal::() .with_recovered_senders() .unwrap() - .seal(block.hash()) + .seal_unchecked(block.hash()) ) ), (BlockHashOrNumber::Hash(B256::random()), TransactionVariant::WithHash)