mimblewimble/grin

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

开放

#3,082 创建于 2019年10月4日

 (4 条评论) (0 个反应) (0 位负责人)Rust (991 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (4,876 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南