Make payload_builder function accept BestTxterator directly #11889
Labels
A-block-building
Related to block building
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
Currently we create the iterator like this:
reth/crates/ethereum/payload/src/lib.rs
Lines 155 to 158 in a4126b3
in:
reth/crates/ethereum/payload/src/lib.rs
Lines 126 to 136 in a4126b3
it would be nicer if this would accept any iterator
we can make this easily work by changing the requested type of the pool
reth/crates/ethereum/payload/src/lib.rs
Line 135 in a4126b3
which should not be
TxPool
but something that returns a newBestTransactionsIter
given aBestTransactionsAttributes
, so something likesee also:
#11890
Additional context
No response
The text was updated successfully, but these errors were encountered: