mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
refactor: use ExecutionOutcome::single instead of tuple From (#21152)
This commit is contained in:
@@ -954,19 +954,19 @@ impl<N: NodePrimitives<SignedTx: SignedTransaction>> NewCanonicalChain<N> {
|
||||
[first, rest @ ..] => {
|
||||
let mut chain = Chain::from_block(
|
||||
first.recovered_block().clone(),
|
||||
ExecutionOutcome::from((
|
||||
first.execution_outcome().clone(),
|
||||
ExecutionOutcome::single(
|
||||
first.block_number(),
|
||||
)),
|
||||
first.execution_outcome().clone(),
|
||||
),
|
||||
first.trie_data_handle(),
|
||||
);
|
||||
for exec in rest {
|
||||
chain.append_block(
|
||||
exec.recovered_block().clone(),
|
||||
ExecutionOutcome::from((
|
||||
exec.execution_outcome().clone(),
|
||||
ExecutionOutcome::single(
|
||||
exec.block_number(),
|
||||
)),
|
||||
exec.execution_outcome().clone(),
|
||||
),
|
||||
exec.trie_data_handle(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user