-
Notifications
You must be signed in to change notification settings - Fork 915
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
Increase the max number of prioritized blob txs in the layered txpool for Pectra #8101
Conversation
…for Pectra Signed-off-by: Fabio Di Fabio <[email protected]>
@@ -75,7 +75,7 @@ enum Implementation { | |||
long DEFAULT_PENDING_TRANSACTIONS_LAYER_MAX_CAPACITY_BYTES = 12_500_000L; | |||
int DEFAULT_MAX_PRIORITIZED_TRANSACTIONS = 2000; | |||
EnumMap<TransactionType, Integer> DEFAULT_MAX_PRIORITIZED_TRANSACTIONS_BY_TYPE = | |||
new EnumMap<>(Map.of(TransactionType.BLOB, 6)); | |||
new EnumMap<>(Map.of(TransactionType.BLOB, 9)); |
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.
It would be nice to have an accompanying unit test assertion.
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.
there are already unit tests that covers this configuration
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.
Consider loading from the blobSchedule config that was added here e830db7?
that is a good point, but requires the configuration to be aware of the protocol schedule and to be updated at runtime to switch to the new value when the fork happens, and that requires a bit of thinking and effort to achieve, so for the moment I prefer to do this simple update and evaluate if it is worth to link it to genesis conf or not, also taking in account the possibility that in future that value is driven by the CL. |
…for Pectra (hyperledger#8101) Signed-off-by: Fabio Di Fabio <[email protected]> Signed-off-by: Bhanu Pulluri <[email protected]>
PR description
Pectra fork increase the max number of blobs in a block to 9, so this PR allows for a max of 9 blob txs in the layered txpool so Besu can fill the blob space when building a block.
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