-
Notifications
You must be signed in to change notification settings - Fork 836
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
eth65 fix #1601
Merged
Merged
eth65 fix #1601
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matkt
force-pushed
the
feature/eth65-test
branch
4 times, most recently
from
November 25, 2020 14:30
db0b6a1
to
6bb1839
Compare
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
matkt
force-pushed
the
feature/eth65-test
branch
from
November 26, 2020 18:44
eddd078
to
7aab40a
Compare
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Closed
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Ratan Rai Sur <[email protected]>
RatanRSur
approved these changes
Nov 30, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to revert any of the cosmetic changes I pushed :)
All the tests and logic LGTM!
Signed-off-by: Karim TAAM <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Karim TAAM [email protected]
PR description
If we look at the specification
GetPoolTransactions
can allow you to retrieve up to 256 transactions at one time while in most cases we only do it for 1 transaction.For each
NewPooledTransactionHashesMessage
we do aGetPooledTransactionsFromPeerTask
which can be problematic if the peer sends us aNewPooledTransactionHashesMessage
per transaction in the pool. If we add each time a request in Netty's queue, this can explain the fact that it is very quickly overloaded.This PR adds a waiting list for
NewPooledTransactionHashesMessage
in order to group several hashes into a singleGetPooledTransactionsFromPeerTask
By default, hashes are put in a 500ms waiting list. This waiting list is created when receiving a first hash from a peer. This duration can be modified thanks to this flag
--Xeth65-tx-announced-buffering-period-milliseconds
Test performed
3 days of non-stop synchronization for the version with the fix. I also compared my results with the
besu-ohio-mainnet-1
version to check that I do not consume a lot of memory or that I do not lose too often peersChangelog