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

Mempool: lower "maxNum" when selecting transactions #6645

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

andreibancioiu
Copy link
Collaborator

Reasoning behind the pull request

  • Since the selection flow does not include not-executable transactions anymore, we can use a lower maxNum when selecting transactions (optimization).

Proposed changes

Testing procedure

  • Standard & heavy testing.

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@andreibancioiu andreibancioiu self-assigned this Dec 2, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review December 2, 2024 09:54
@@ -143,7 +143,7 @@ const MaxGasFeeHigherFactorAccepted = 10
const TxCacheSelectionGasRequested = 10_000_000_000

// TxCacheSelectionMaxNumTxs defines the maximum number of transactions that should be selected from the cache.
const TxCacheSelectionMaxNumTxs = 50000
const TxCacheSelectionMaxNumTxs = 30_000
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not yet a configuration entry. Postponed to MX-16201.

@andreibancioiu andreibancioiu changed the title Mx 16207 selection max num Mempool: lower "maxNum" when selecting transactions Dec 2, 2024
@andreibancioiu andreibancioiu merged commit 11fc7c6 into feat/mempool Dec 2, 2024
7 checks passed
@andreibancioiu andreibancioiu deleted the MX-16207-selection-max-num branch December 2, 2024 10:59
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