Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Sync progress and error handling fixes #6560

Merged
merged 1 commit into from
Sep 21, 2017
Merged

Sync progress and error handling fixes #6560

merged 1 commit into from
Sep 21, 2017

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Sep 20, 2017

No description provided.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. B0-patch M4-core ⛓ Core client code / Rust. labels Sep 20, 2017
@@ -1153,7 +1153,7 @@ impl ChainSync {
trace!(target: "sync", "== Connected {}: {}", peer, io.peer_info(peer));
if let Err(e) = self.send_status(io, peer) {
debug!(target:"sync", "Error sending status request: {:?}", e);
io.disable_peer(peer);
io.disconnect_peer(peer);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Send errors are caused by dropped connections, not by misbehaviour.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 21, 2017
@gavofyork gavofyork merged commit 684b142 into master Sep 21, 2017
@gavofyork gavofyork deleted the sync-fix branch September 21, 2017 08:12
@5chdn
Copy link
Contributor

5chdn commented Sep 21, 2017

Does this partially address #6372 ?

arkpar added a commit that referenced this pull request Sep 21, 2017
@arkpar
Copy link
Collaborator Author

arkpar commented Sep 21, 2017

Yes, but only partially. This will prevent occasional dropping of peers with snapshots.

arkpar added a commit that referenced this pull request Sep 21, 2017
* Sync progress and error handling fixes (#6560)

* Fixed receipt serialization and RPC (#6555)

* v1.7.3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants