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

Process onBlockAdded event asyncronously #5909

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

fab-10
Copy link
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

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 hyperledger:main Sep 27, 2023
8 checks passed
@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