Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always enforce promotion filter for transactions in the prioritized layer #5921

Merged
merged 9 commits into from
Sep 27, 2023

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Sep 21, 2023

PR description

This PR is built on top of #5920, so please check it first (relative changes)

This PR is preparatory for more work on prioritizing local txs, that consist in more small PRs that have been split to make it easier to review.
Before the PR, the prioritized layer also kept txs that could not be selected to be included in the next block, because as far as there was still space txs were added and kept there, regardless they were or not satisfying the promotion filter anymore.
This PR improves the content of the prioritized layer, keeping there only txs that always satisfy the promotion filter, and thus are candidate for inclusion in the next block, this avoid to waste some work during txs selection, and pave the way for an easier prioritization of local txs.
Currently the promotion filter says that a tx is willing to pay at list the base fee, on base fee market network, otherwise is always true.

Simulation of block production shows no regression, actually metrics about number of txs in the block, block value and gas used are, on average, better with this PR vs 23,7,2 version:
image

image

image

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

@fab-10 fab-10 changed the title Prioritized promotion filter2 Always enforce promotion filter for transactions in the prioritized layer Sep 22, 2023
@fab-10 fab-10 marked this pull request as ready for review September 22, 2023 15:54
@fab-10 fab-10 force-pushed the prioritized-promotion-filter2 branch from 1687c0b to c7c8dec Compare September 22, 2023 15:56
@fab-10 fab-10 force-pushed the prioritized-promotion-filter2 branch from 5655d2c to 919734e Compare September 25, 2023 12:30
# Conflicts:
#	ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/transactions/layered/LayeredPendingTransactionsLondonTest.java
@fab-10 fab-10 enabled auto-merge (squash) September 27, 2023 10:45
@fab-10 fab-10 merged commit 8200e98 into hyperledger:main Sep 27, 2023
@fab-10 fab-10 deleted the prioritized-promotion-filter2 branch September 27, 2023 11:58
jflo pushed a commit to jflo/besu that referenced this pull request Nov 10, 2023
…ayer (hyperledger#5921)

Signed-off-by: Fabio Di Fabio <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
NickSneo pushed a commit to NickSneo/besu that referenced this pull request Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants