Skip to content

feat: add TransactionPool::get_pooled_transaction_elements#4317

Merged
mattsse merged 1 commit intomainfrom
matt/add-get-pooled-transaction-elements
Aug 22, 2023
Merged

feat: add TransactionPool::get_pooled_transaction_elements#4317
mattsse merged 1 commit intomainfrom
matt/add-get-pooled-transaction-elements

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Aug 22, 2023

adds missing Txpool function to retrieve the PooledTransactionsElement.

this also makes it possible to enforce a limit

@mattsse mattsse requested a review from gakonst as a code owner August 22, 2023 14:50
@mattsse mattsse force-pushed the matt/add-get-pooled-transaction-elements branch from 271d153 to 77afc3d Compare August 22, 2023 14:50
@mattsse mattsse requested a review from Rjected August 22, 2023 14:50
@mattsse mattsse added M-changelog This change should be included in the changelog A-tx-pool Related to the transaction mempool labels Aug 22, 2023
@mattsse mattsse force-pushed the matt/add-get-pooled-transaction-elements branch from 77afc3d to 37dc9c6 Compare August 22, 2023 14:58
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Merging #4317 (37dc9c6) into main (8d25aa3) will decrease coverage by 0.07%.
Report is 2 commits behind head on main.
The diff coverage is 0.00%.

Impacted file tree graph

Files Changed Coverage Δ
crates/primitives/src/transaction/eip4844.rs 37.88% <0.00%> (-1.48%) ⬇️
crates/transaction-pool/src/lib.rs 36.50% <0.00%> (-1.41%) ⬇️
crates/transaction-pool/src/noop.rs 11.53% <0.00%> (-0.55%) ⬇️
crates/transaction-pool/src/pool/mod.rs 42.11% <0.00%> (-2.80%) ⬇️
crates/transaction-pool/src/traits.rs 7.17% <0.00%> (-0.22%) ⬇️

... and 6 files with indirect coverage changes

Flag Coverage Δ
integration-tests 16.80% <0.00%> (-0.03%) ⬇️
unit-tests 63.71% <0.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
reth binary 26.12% <ø> (ø)
blockchain tree 82.56% <ø> (ø)
pipeline 90.07% <ø> (ø)
storage (db) 74.77% <ø> (ø)
trie 94.85% <ø> (ø)
txpool 47.67% <0.00%> (-0.54%) ⬇️
networking 77.48% <ø> (-0.05%) ⬇️
rpc 58.80% <ø> (-0.01%) ⬇️
consensus 63.53% <ø> (ø)
revm 32.01% <ø> (ø)
payload builder 6.82% <ø> (ø)
primitives 86.09% <0.00%> (-0.08%) ⬇️

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, I like the new limit type and get_pooled_transaction_elements

@mattsse mattsse added this pull request to the merge queue Aug 22, 2023
Merged via the queue into main with commit 928c60c Aug 22, 2023
@mattsse mattsse deleted the matt/add-get-pooled-transaction-elements branch August 22, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tx-pool Related to the transaction mempool M-changelog This change should be included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants