Skip to content

Process onBlockAdded event asyncronously#5909

Merged
fab-10 merged 5 commits intobesu-eth:mainfrom
fab-10:txpool-async-block-added
Sep 27, 2023
Merged

Process onBlockAdded event asyncronously#5909
fab-10 merged 5 commits intobesu-eth:mainfrom
fab-10:txpool-async-block-added

Conversation

@fab-10
Copy link
Copy Markdown
Contributor

@fab-10 fab-10 commented Sep 20, 2023

PR description

Reduce engine_forkchoiceUpdatedV? response time by asynchronously process block added events in the transaction pool.
This way the processing of the block in the txpool will not add to the response time of the method, and according to my test the gain is evident (yellow line instance is running this PR)
image

The implementation makes sure that block events are processed sequentially in the order they arrive.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 20, 2023

  • 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

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
# Conflicts:
#	CHANGELOG.md
#	ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/transactions/AbstractTransactionPoolTest.java
#	ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/transactions/AbstractTransactionsLayeredPendingTransactionsTest.java
@fab-10 fab-10 enabled auto-merge (squash) September 27, 2023 08:03
@fab-10 fab-10 merged commit 109bb4d into besu-eth:main Sep 27, 2023
@fab-10 fab-10 deleted the txpool-async-block-added branch September 27, 2023 08:41
jflo pushed a commit to jflo/besu that referenced this pull request Nov 10, 2023
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
NickSneo pushed a commit to NickSneo/besu that referenced this pull request Nov 12, 2023
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
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