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

Transactions that takes too long to evaluate, during block creation, are dropped from the txpool #6163

Merged
merged 5 commits into from
Nov 13, 2023

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Nov 13, 2023

PR description

In PR #6044, a timeout has been introduced to avoid that the transactions selection, during block creation, could take an indefinite amount of time, this PR iterates on it checking if the tx that was evaluating when the timeout occurred, took longer that the max amount of time allocated for the block creation, and if this was the case, the tx is removed from the pool, to avoid that it will be retried in future block creations.

Copy link

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

@fab-10 fab-10 changed the title During block creation, transactions that takes too long to evaluate, are dropped from the txpool Transactions that takes too long to evaluate, during block creation, are dropped from the txpool Nov 13, 2023
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
@fab-10 fab-10 marked this pull request as ready for review November 13, 2023 14:53
Copy link
Contributor

@gfukushima gfukushima left a comment

Choose a reason for hiding this comment

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

lgtm

@fab-10 fab-10 merged commit 4eb3358 into hyperledger:main Nov 13, 2023
19 checks passed
@fab-10 fab-10 deleted the drop-long-running-tx branch November 13, 2023 17:14
jflo pushed a commit to jflo/besu that referenced this pull request Nov 17, 2023
…are dropped from the txpool (hyperledger#6163)

Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
jflo pushed a commit to jflo/besu that referenced this pull request Nov 20, 2023
…are dropped from the txpool (hyperledger#6163)

Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
jflo pushed a commit to jflo/besu that referenced this pull request Dec 4, 2023
…are dropped from the txpool (hyperledger#6163)

Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Justin Florentine <[email protected]>
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.

2 participants