-
Notifications
You must be signed in to change notification settings - Fork 839
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
Make transaction pool limits for sender based on pool size #4417
Make transaction pool limits for sender based on pool size #4417
Conversation
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.
Looks good, we just need to found a way to avoid a breaking change
|
||
@Option( | ||
names = {"--tx-pool-future-max-by-account"}, | ||
paramLabel = MANDATORY_INTEGER_FORMAT_HELP, | ||
converter = PercentageConverter.class, | ||
description = | ||
"Maximum per account of currently unexecutable future transactions that can occupy the txpool (default: ${DEFAULT-VALUE})", | ||
arity = "1") | ||
private final Integer maxFutureTransactionsByAccount = | ||
TransactionPoolConfiguration.MAX_FUTURE_TRANSACTION_BY_ACCOUNT; |
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.
I think we need to keep this for the moment, otherwise it is a breaking change, what we can do is to give an error if this and the new one are used together, or to say that this has no effect if the new one is used
a0f38dd
to
d3003a8
Compare
Please just update the CHANGELOG |
5dbad31
to
95b24a4
Compare
burned in on mainnet along with 4423, 4425 |
…y sender is 5 move config into TransactionPoolOptions class Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
Signed-off-by: garyschulte <garyschulte@gmail.com>
95b24a4
to
3544300
Compare
…er#4417) * make transaction pool limits for sender based on pool size. default by sender is 5 move config into TransactionPoolOptions class Signed-off-by: garyschulte <garyschulte@gmail.com>
PR description
Limit the portion of the transaction pool that a single sender can occupy to a percentage
This PR will see the default txpool configuration restrict the number of transactions from a single sender in the pool from 64 to 5. This should decrease the cost of transaction eviction during transaction processing, and yield a transaction pool with a greater percentage of executable transactions for building a block.
Fixed Issue(s)
relates to #4401
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog