-
Notifications
You must be signed in to change notification settings - Fork 847
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
Layered txpool tuning for blob transactions #6940
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
…type Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
fab-10
force-pushed
the
layered-txpool-blob-tuning
branch
from
April 12, 2024 16:26
31b21b0
to
95167f2
Compare
Signed-off-by: Fabio Di Fabio <[email protected]>
fab-10
added
the
doc-change-required
Indicates an issue or PR that requires doc to be updated
label
Apr 15, 2024
fab-10
changed the title
Layered txpool blob tuning
Layered txpool tuning for blob transactions
Apr 15, 2024
macfarla
reviewed
Apr 22, 2024
besu/src/main/java/org/hyperledger/besu/cli/options/TransactionPoolOptions.java
Show resolved
Hide resolved
# Conflicts: # CHANGELOG.md # ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/transactions/layered/BaseFeePrioritizedTransactionsTest.java # ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/transactions/layered/LayersTest.java
macfarla
approved these changes
Apr 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
alexandratran
removed
the
doc-change-required
Indicates an issue or PR that requires doc to be updated
label
May 1, 2024
jflo
pushed a commit
to jflo/besu
that referenced
this pull request
May 28, 2024
Signed-off-by: Fabio Di Fabio <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
matthew1001
pushed a commit
to kaleido-io/besu
that referenced
this pull request
Jun 7, 2024
Signed-off-by: Fabio Di Fabio <[email protected]>
jflo
pushed a commit
to jflo/besu
that referenced
this pull request
Jun 10, 2024
Signed-off-by: Fabio Di Fabio <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR description
Introduce a new configuration option,
tx-pool-max-prioritized-by-type
, to tune the max number of transaction of a specified type that are kept in the prioritized layer at any time.This new option is mostly useful to tune the amount of blob txs to keep in the prioritized layer, that is the layer with the transactions that are candidate for inclusion in a potential next block. Keeping this layer sorted is costly so it makes sense to only keep there the max amount of txs that could fit in a block, plus a small buffer, there is already an option to limit the max number of txs in this layer, but since very few blob txs can be included in a block (max 6 at this time), having the possibility to tune the max number of txs by type help with keeping the prioritized layer performant.
By default
tx-pool-max-prioritized-by-type=["BLOB=6"]
Fixed Issue(s)
Thanks for sending a pull request! Have you done the following?
doc-change-required
label to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests