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

Prioritize with nonce distance #2505

Merged
merged 13 commits into from
Aug 12, 2021

Conversation

jflo
Copy link
Contributor

@jflo jflo commented Jul 6, 2021

PR description

Prevent multiple transactions from the same address from evicting others which are waiting in a full transaction pool. When we have to evict a transaction from a full pool, we now also consider how far it is from the lowest nonce from the same address already in the pool. We are also increasing the size of the pending transaction pool, so it should support the new 10MB maximum message size previously introduced by pr #2485 .

Fixed Issue(s)

Changelog

Default value for --tx-pool-max-size is now 32K.

Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

Some comments

jflo added 11 commits July 7, 2021 10:10
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
…ort keys aren't working as I expect

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
…l check for dropping

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
…ders

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
@jflo jflo force-pushed the prioritize-with-nonce-distance branch from e5a4b55 to d6162a9 Compare July 7, 2021 14:10
@jflo jflo requested a review from matkt July 7, 2021 16:16
Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

@jflo
Copy link
Contributor Author

jflo commented Aug 3, 2021

Waiting till after london to merge, and then observe running for a while.

@@ -436,7 +432,7 @@ public void transactionDroppedEventDoesNotFireAfterUnsubscribe() {
transactionPool.addLocalTransaction(TX2);

assertThat(result.get()).isNotNull();
serviceImpl.removeTransactionAddedListener(id);
serviceImpl.removeTransactionDroppedListener(id);
Copy link
Contributor

Choose a reason for hiding this comment

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

nice catch.

Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

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

🚢

@jflo jflo merged commit 1f4f131 into hyperledger:main Aug 12, 2021
@jflo jflo deleted the prioritize-with-nonce-distance branch August 12, 2021 19:09
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 1, 2021
@garyschulte garyschulte mentioned this pull request Sep 1, 2021
1 task
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 1, 2021
Signed-off-by: garyschulte <garyschulte@gmail.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>

Co-authored-by: matkt <karim.t2am@gmail.com>
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.

3 participants