chore: unify recover_singer (#12881)

This commit is contained in:
Matthias Seitz
2024-11-26 16:19:58 +01:00
committed by GitHub
parent 2d6b8937c3
commit 4dfaa46380
17 changed files with 50 additions and 60 deletions

View File

@ -1,5 +1,3 @@
use std::{collections::HashMap, fmt::Debug, fs::File, io::Write, path::PathBuf};
use alloy_consensus::Header;
use alloy_primitives::{keccak256, B256, U256};
use alloy_rpc_types_debug::ExecutionWitness;
@ -11,6 +9,7 @@ use reth_evm::{
state_change::post_block_balance_increments, system_calls::SystemCaller, ConfigureEvm,
};
use reth_primitives::{Receipt, SealedBlockWithSenders, SealedHeader};
use reth_primitives_traits::SignedTransaction;
use reth_provider::{BlockExecutionOutput, ChainSpecProvider, StateProviderFactory};
use reth_revm::{
database::StateProviderDatabase,
@ -22,6 +21,7 @@ use reth_rpc_api::DebugApiClient;
use reth_tracing::tracing::warn;
use reth_trie::{updates::TrieUpdates, HashedPostState, HashedStorage};
use serde::Serialize;
use std::{collections::HashMap, fmt::Debug, fs::File, io::Write, path::PathBuf};
/// Generates a witness for the given block and saves it to a file.
#[derive(Debug)]