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

Snapshot sync improvements #2960

Merged
merged 4 commits into from
Oct 29, 2016
Merged

Snapshot sync improvements #2960

merged 4 commits into from
Oct 29, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 29, 2016

  • Added timeout for Status message.
  • Added snapshot selection phase (waiting for 3 matching snapshots for 5 seconds).
  • Pause snapshot downloading when restoration can't keep up.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 29, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 29, 2016
@gavofyork gavofyork merged commit 9e82eec into master Oct 29, 2016
@gavofyork gavofyork deleted the snapshot-sync-up branch October 29, 2016 11:07
let peers = snapshot_peers.entry(hash).or_insert_with(Vec::new);
peers.push(*p);
if peers.len() > max_peers {
max_peers = peers.len();
Copy link
Contributor

Choose a reason for hiding this comment

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

if there's a tie here it should be weighted by the best block number so you don't get very stale snapshots.

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