Skip to content

Conversation

@fab-10
Copy link
Contributor

@fab-10 fab-10 commented Sep 12, 2025

PR description

Built on top of #9191 and #9192
please review them first

This PR introduces a new configuration option tx-pool-enable-balance-check, false by default, that when enabled, will make sure that pending transactions, which sender hasn't enough balance to pay their fee, cannot be in the prioritized layer, thus preventing them to occupy space there and potentially be selected for block production.

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
  • hive tests: Engine or other RPCs modified?

@fab-10 fab-10 force-pushed the layer-tx-pool-balance-aware branch 4 times, most recently from d715f8f to c7c876e Compare September 15, 2025 17:28
@fab-10 fab-10 marked this pull request as ready for review September 15, 2025 18:34
@fab-10 fab-10 added the enhancement New feature or request label Sep 17, 2025
Copy link
Contributor

@jflo jflo left a comment

Choose a reason for hiding this comment

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

A few comments inline, and a possible edge case which I'm not sure the testing covers.

@fab-10 fab-10 force-pushed the layer-tx-pool-balance-aware branch from c7c876e to 0ec79a7 Compare September 18, 2025 08:58
@fab-10
Copy link
Contributor Author

fab-10 commented Sep 19, 2025

Thanks @jflo for the review, could you also review this other PR that should go first #9192?

@fab-10 fab-10 force-pushed the layer-tx-pool-balance-aware branch from 328aaae to d2a0959 Compare September 23, 2025 09:12
@fab-10 fab-10 enabled auto-merge (squash) September 23, 2025 09:13
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@fab-10 fab-10 force-pushed the layer-tx-pool-balance-aware branch from d2a0959 to b227217 Compare September 23, 2025 09:35
@fab-10 fab-10 merged commit 252b645 into hyperledger:main Sep 23, 2025
46 checks passed
@fab-10 fab-10 deleted the layer-tx-pool-balance-aware branch September 23, 2025 10:02
@fab-10 fab-10 added the doc-change-required Indicates an issue or PR that requires doc to be updated label Sep 23, 2025
@bgravenorst bgravenorst removed the doc-change-required Indicates an issue or PR that requires doc to be updated label Sep 24, 2025
AliZDev-v0 pushed a commit to AliZDev-v0/besu that referenced this pull request Oct 5, 2025
…dger#9176)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Ali Zhagparov <alijakparov.kz@gmail.com>
jflo pushed a commit to jflo/besu that referenced this pull request Oct 13, 2025
…dger#9176)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: jflo <justin+github@florentine.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants