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

Add a tx selector to skip txs from the same sender after the first not selected #8216

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Jan 31, 2025

PR description

During block creation, if a sender has more that one pending txs and one of them if not selected for any reason, then it is worthless to keep evaluation other pending txs from the same sender, since they will also be not selected due to the nonce gap.
Before this PR, this check was only done in the layered txpool, but it is better to move it as a standard tx selector, so it applies also to the sequenced txpool.

Fixed Issue(s)

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

@fab-10 fab-10 marked this pull request as ready for review January 31, 2025 17:18
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.

LGTM, but needs an updated plugin-api hash to pass CI

Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

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

changelog entry

…t selected

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 force-pushed the skip-sender-tx-selector branch from 616a8c4 to 820cc51 Compare February 3, 2025 11:09
@fab-10 fab-10 enabled auto-merge (squash) February 3, 2025 11:09
@fab-10 fab-10 merged commit 4fa9f0c into hyperledger:main Feb 3, 2025
44 checks passed
pullurib pushed a commit to pullurib/besu that referenced this pull request Feb 6, 2025
…t selected (hyperledger#8216)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
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