mimblewimble/grin

Initial header sync (request headers from fast peers or avoid slow peers)

Open

#3,082 opened on Oct 4, 2019

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Rust (991 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,876 stars)
PR merge metrics
 (Avg merge 6d 11h) (25 merged PRs in 30d)

Description

The initial sync feels slow. We request headers in chunks of 512 from random connected peer. Sometimes we hit a slow peer and the latency introduced in even a few requests from a slow peer makes the header sync feel slow.

It might be nice to track peer speeds and make a better decision in terms of prioritizing faster peers as we proceed with the header sync.

We already track download rates at some level of granularity (not entirely sure what we do today) as we display this on the TUI - so we may already collect enough information to make this decision around which peers are best to request headers from.

Contributor guide