mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: unify recover_singer (#12881)
This commit is contained in:
@ -775,12 +775,6 @@ impl<N: ProviderNodeTypes> StateReader for BlockchainProvider2<N> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::{
|
||||
ops::{Range, RangeBounds},
|
||||
sync::Arc,
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
providers::BlockchainProvider2,
|
||||
test_utils::{
|
||||
@ -812,7 +806,7 @@ mod tests {
|
||||
use reth_primitives::{
|
||||
BlockExt, Receipt, SealedBlock, StaticFileSegment, TransactionSignedNoHash,
|
||||
};
|
||||
use reth_primitives_traits::BlockBody as _;
|
||||
use reth_primitives_traits::{BlockBody as _, SignedTransaction};
|
||||
use reth_storage_api::{
|
||||
BlockHashReader, BlockIdReader, BlockNumReader, BlockReader, BlockReaderIdExt, BlockSource,
|
||||
ChangeSetReader, DatabaseProviderFactory, HeaderProvider, ReceiptProvider,
|
||||
@ -824,7 +818,11 @@ mod tests {
|
||||
random_receipt, BlockParams, BlockRangeParams,
|
||||
};
|
||||
use revm::db::BundleState;
|
||||
use std::ops::Bound;
|
||||
use std::{
|
||||
ops::{Bound, Range, RangeBounds},
|
||||
sync::Arc,
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
const TEST_BLOCKS_COUNT: usize = 5;
|
||||
|
||||
|
||||
@ -670,6 +670,7 @@ mod tests {
|
||||
test_utils::{create_test_static_files_dir, ERROR_TEMPDIR},
|
||||
};
|
||||
use reth_primitives::StaticFileSegment;
|
||||
use reth_primitives_traits::SignedTransaction;
|
||||
use reth_prune_types::{PruneMode, PruneModes};
|
||||
use reth_storage_errors::provider::ProviderError;
|
||||
use reth_testing_utils::generators::{self, random_block, random_header, BlockParams};
|
||||
|
||||
@ -26,6 +26,7 @@ use reth_primitives::{
|
||||
Account, Block, BlockWithSenders, Bytecode, EthPrimitives, GotExpected, Receipt, SealedBlock,
|
||||
SealedBlockWithSenders, SealedHeader, TransactionMeta, TransactionSigned,
|
||||
};
|
||||
use reth_primitives_traits::SignedTransaction;
|
||||
use reth_stages_types::{StageCheckpoint, StageId};
|
||||
use reth_storage_api::{
|
||||
DatabaseProviderFactory, StageCheckpointReader, StateProofProvider, StorageRootProvider,
|
||||
|
||||
Reference in New Issue
Block a user