mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor: merge signed tx traits (#14622)
This commit is contained in:
@ -19,7 +19,7 @@ use reth_chain_state::CanonStateNotification;
|
||||
use reth_chainspec::{ChainSpecProvider, EthChainSpec};
|
||||
use reth_execution_types::ChangedAccount;
|
||||
use reth_fs_util::FsPathError;
|
||||
use reth_primitives::{transaction::SignedTransactionIntoRecoveredExt, SealedHeader};
|
||||
use reth_primitives::SealedHeader;
|
||||
use reth_primitives_traits::{NodePrimitives, SignedTransaction};
|
||||
use reth_storage_api::{errors::provider::ProviderError, BlockReaderIdExt, StateProviderFactory};
|
||||
use reth_tasks::TaskSpawner;
|
||||
|
||||
@ -4,9 +4,7 @@ use alloy_eips::{eip1559::MIN_PROTOCOL_BASE_FEE, eip2718::Encodable2718, eip2930
|
||||
use alloy_primitives::{Address, Bytes, TxKind, B256, U256};
|
||||
use rand::Rng;
|
||||
use reth_chainspec::MAINNET;
|
||||
use reth_primitives::{
|
||||
transaction::SignedTransactionIntoRecoveredExt, Transaction, TransactionSigned,
|
||||
};
|
||||
use reth_primitives::{transaction::SignedTransaction, Transaction, TransactionSigned};
|
||||
use reth_primitives_traits::crypto::secp256k1::sign_message;
|
||||
|
||||
/// A generator for transactions for testing purposes.
|
||||
|
||||
@ -29,10 +29,7 @@ use rand::{
|
||||
prelude::Distribution,
|
||||
};
|
||||
use reth_primitives::{
|
||||
transaction::{
|
||||
SignedTransactionIntoRecoveredExt, TransactionConversionError,
|
||||
TryFromRecoveredTransactionError,
|
||||
},
|
||||
transaction::{TransactionConversionError, TryFromRecoveredTransactionError},
|
||||
PooledTransaction, Recovered, Transaction, TransactionSigned, TxType,
|
||||
};
|
||||
use reth_primitives_traits::{InMemorySize, SignedTransaction};
|
||||
|
||||
@ -17,9 +17,8 @@ use futures_util::{ready, Stream};
|
||||
use reth_eth_wire_types::HandleMempoolData;
|
||||
use reth_execution_types::ChangedAccount;
|
||||
use reth_primitives::{
|
||||
kzg::KzgSettings,
|
||||
transaction::{SignedTransactionIntoRecoveredExt, TransactionConversionError},
|
||||
PooledTransaction, Recovered, SealedBlock, TransactionSigned,
|
||||
kzg::KzgSettings, transaction::TransactionConversionError, PooledTransaction, Recovered,
|
||||
SealedBlock, TransactionSigned,
|
||||
};
|
||||
use reth_primitives_traits::{Block, InMemorySize, SignedTransaction};
|
||||
#[cfg(feature = "serde")]
|
||||
|
||||
@ -924,7 +924,7 @@ mod tests {
|
||||
use alloy_consensus::Transaction;
|
||||
use alloy_eips::eip2718::Decodable2718;
|
||||
use alloy_primitives::{hex, U256};
|
||||
use reth_primitives::{transaction::SignedTransactionIntoRecoveredExt, PooledTransaction};
|
||||
use reth_primitives::{transaction::SignedTransaction, PooledTransaction};
|
||||
use reth_provider::test_utils::{ExtendedAccount, MockEthProvider};
|
||||
|
||||
fn get_transaction() -> EthPooledTransaction {
|
||||
|
||||
Reference in New Issue
Block a user