mimblewimble/grin

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

Open

#3,082 建立於 2019年10月4日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Rust (991 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (4,876 star)
PR 合併指標
 (平均合併 6天 11小時) (30 天內合併 25 個 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.

貢獻者指南