-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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: p2p sync with lagging peer #1301
Merged
Merged
Commits on Feb 5, 2023
-
fix: p2p sync with lagging peer
no need to sync with lagging peer, which could make the local chain stalling as well.
Configuration menu - View commit details
-
Copy full SHA for 6dc926f - Browse repository at this point
Copy the full SHA 6dc926fView commit details
Commits on Feb 6, 2023
-
fix: do not drop lagging peer, will retry it later.
The lagging peer is probably already the best peer with largest total difficulty. Shoule not remove it, since p2p is a bidirectional connection, drop it could make the peer unable to sync with this peer as well. And the lagging peer could catch up later, so keep it.
Configuration menu - View commit details
-
Copy full SHA for 3a940ea - Browse repository at this point
Copy the full SHA 3a940eaView commit details -
p2p: add lagging field in Peer
lagging peer will be connected, but won't be used to sync. the lagging flag can be clear once the Peer updates its latest block state.
Configuration menu - View commit details
-
Copy full SHA for 2cccbd3 - Browse repository at this point
Copy the full SHA 2cccbd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a991495 - Browse repository at this point
Copy the full SHA a991495View commit details
Commits on Feb 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f31c142 - Browse repository at this point
Copy the full SHA f31c142View commit details -
test: fix a UT fail of download test
errStallingPeer is replaced by errLaggingPeer in this case
Configuration menu - View commit details
-
Copy full SHA for 5bca078 - Browse repository at this point
Copy the full SHA 5bca078View commit details
Commits on Feb 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c74f9c1 - Browse repository at this point
Copy the full SHA c74f9c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97820e3 - Browse repository at this point
Copy the full SHA 97820e3View commit details
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.