Make txpool independent of primitive tx types #8668
Labels
A-tx-pool
Related to the transaction mempool
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
we need a tx trait abstraction for these conversions:
reth/crates/transaction-pool/src/traits.rs
Lines 756 to 764 in c733859
reth/crates/primitives/src/transaction/mod.rs
Lines 1606 to 1618 in c733859
this likely requires additional associated types on the pool trait, where we use it, for example when returning the pooled variant.
like
type PooledTx;
which then have the conversionsreth/crates/transaction-pool/src/traits.rs
Lines 44 to 45 in c733859
Update
after ##9916 we can continue with trying to gradually remove the bounds:
reth/crates/transaction-pool/src/traits.rs
Lines 761 to 763 in c71c813
we can approach this by identifying where these are used, and trying to enforce these bounds there, for example
T: Trasactionpool < Consensus = TransactionSignedEcRecovered>
etc...and also remove these types from the Transactionpool trait and use the AT instead, this likely requires some additional bounds or traits on the impl:
reth/crates/transaction-pool/src/traits.rs
Lines 223 to 237 in c71c813
FYI @tcoratger in case you want to continue
Additional context
No response
The text was updated successfully, but these errors were encountered: