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.
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
Fix/Improve syncing (3x): Adding ping mechanism to TaskManager for replacing StartHeight and PendingKnownHashes strategy #899
Fix/Improve syncing (3x): Adding ping mechanism to TaskManager for replacing StartHeight and PendingKnownHashes strategy #899
Changes from 9 commits
99ca3f2
2048e7b
079a74b
755ab15
4ed0e22
4b410ad
64dd8bd
58d2ff0
9e271e1
7b32b10
ae46f80
70b2072
b44e1eb
bf01bab
261e7ff
152a7cb
cd5cb5f
692a9ad
11e811c
8196dff
0e21d78
bd3b3fc
fe2d98a
100b30d
ebe25e2
fd0e712
9a73bf8
04fdfa8
1d985e0
daf7141
75f4470
e18184e
98f11f8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I think we should think more about this line.
Node A sends an
inv
for a block, and node B sends the same. In this case, the second message will be dropped. But if node A doesn't sendblock
, we will stop sync.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.
O.o, makes sense, @erikzhang. Nice catch and visualization!
We are destroying master2x... Just kidding, I think it will be ok there for now! ahueahuea
Can we personalize this
IEnumerable queue
a little bit more? If we set timestamps for theobjects
. Maybe also some improvements could come on the management ofProtocolHandler
.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.
Then maybe we need the duplicates, i think that with the FIFO's patch and the own messages patch, will be enought, it was tested with this both patches and without this one?
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.
I am testing a change for known hashes behaviour in ProtocolHandler related it, will share the code after the testing is done.
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.
Please check the PR #1024 which is for 2x.
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.
I still think we should remove this.
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.
So, let's remove this and open it in another PR.
I think that we added it before on master2.x. But we can separate it here and analyse in another moment.
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.
@erikzhang, however, maybe, with
PendingHashes
it will not happen infinitely, since the hash will expire.