Skip to content

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

Merged
fab-10 merged 5 commits intohyperledger:mainfrom
fab-10:drop-long-running-tx
Nov 13, 2023
Merged

Transactions that takes too long to evaluate, during block creation, are dropped from the txpool#6163
fab-10 merged 5 commits intohyperledger:mainfrom
fab-10:drop-long-running-tx

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.

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@github-actions
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 <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@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
@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 <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
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 <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
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 <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
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