mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm usage of PooledTransactionsElementEcRecovered alias (#13690)
This commit is contained in:
@ -30,8 +30,7 @@ use rand::{
|
||||
};
|
||||
use reth_primitives::{
|
||||
transaction::{SignedTransactionIntoRecoveredExt, TryFromRecoveredTransactionError},
|
||||
PooledTransaction, PooledTransactionsElementEcRecovered, RecoveredTx, Transaction,
|
||||
TransactionSigned, TxType,
|
||||
PooledTransaction, RecoveredTx, Transaction, TransactionSigned, TxType,
|
||||
};
|
||||
use reth_primitives_traits::InMemorySize;
|
||||
use std::{ops::Range, sync::Arc, time::Instant, vec::IntoIter};
|
||||
@ -1045,8 +1044,8 @@ impl TryFrom<RecoveredTx<TransactionSigned>> for MockTransaction {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<PooledTransactionsElementEcRecovered> for MockTransaction {
|
||||
fn from(tx: PooledTransactionsElementEcRecovered) -> Self {
|
||||
impl From<RecoveredTx<PooledTransaction>> for MockTransaction {
|
||||
fn from(tx: RecoveredTx<PooledTransaction>) -> Self {
|
||||
let (tx, signer) = tx.into_parts();
|
||||
RecoveredTx::<TransactionSigned>::new_unchecked(tx.into(), signer).try_into().expect(
|
||||
"Failed to convert from PooledTransactionsElementEcRecovered to MockTransaction",
|
||||
|
||||
@ -21,8 +21,7 @@ use reth_execution_types::ChangedAccount;
|
||||
use reth_primitives::{
|
||||
kzg::KzgSettings,
|
||||
transaction::{SignedTransactionIntoRecoveredExt, TryFromRecoveredTransactionError},
|
||||
PooledTransaction, PooledTransactionsElementEcRecovered, RecoveredTx, SealedBlock, Transaction,
|
||||
TransactionSigned,
|
||||
PooledTransaction, RecoveredTx, SealedBlock, Transaction, TransactionSigned,
|
||||
};
|
||||
use reth_primitives_traits::{BlockBody, SignedTransaction};
|
||||
#[cfg(feature = "serde")]
|
||||
@ -1242,8 +1241,8 @@ impl<T: SignedTransaction> EthPooledTransaction<T> {
|
||||
}
|
||||
|
||||
/// Conversion from the network transaction type to the pool transaction type.
|
||||
impl From<PooledTransactionsElementEcRecovered> for EthPooledTransaction {
|
||||
fn from(tx: PooledTransactionsElementEcRecovered) -> Self {
|
||||
impl From<RecoveredTx<PooledTransaction>> for EthPooledTransaction {
|
||||
fn from(tx: RecoveredTx<PooledTransaction>) -> Self {
|
||||
let encoded_length = tx.encode_2718_len();
|
||||
let (tx, signer) = tx.into_parts();
|
||||
match tx {
|
||||
|
||||
Reference in New Issue
Block a user