feat: relax more tx manager bounds (#12744)

This commit is contained in:
Matthias Seitz
2024-11-21 16:35:43 +01:00
committed by GitHub
parent c73dadacb2
commit 54ff4c7349
3 changed files with 211 additions and 187 deletions

View File

@ -20,7 +20,8 @@ use reth_eth_wire_types::HandleMempoolData;
use reth_execution_types::ChangedAccount;
use reth_primitives::{
kzg::KzgSettings, transaction::TryFromRecoveredTransactionError, PooledTransactionsElement,
PooledTransactionsElementEcRecovered, SealedBlock, Transaction, TransactionSignedEcRecovered,
PooledTransactionsElementEcRecovered, SealedBlock, Transaction, TransactionSigned,
TransactionSignedEcRecovered,
};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
@ -1068,7 +1069,9 @@ pub trait PoolTransaction: fmt::Debug + Send + Sync + Clone {
/// Super trait for transactions that can be converted to and from Eth transactions
pub trait EthPoolTransaction:
PoolTransaction<
Consensus: From<TransactionSignedEcRecovered> + Into<TransactionSignedEcRecovered>,
Consensus: From<TransactionSignedEcRecovered>
+ Into<TransactionSignedEcRecovered>
+ Into<TransactionSigned>,
Pooled: From<PooledTransactionsElementEcRecovered> + Into<PooledTransactionsElementEcRecovered>,
>
{