From abcb28c8854c74942dd731f971dff2128fe0084f Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 11 Mar 2019 12:14:27 +0800 Subject: dex: fetcher: modify parameters to speedup syncing (#239) --- dex/fetcher/fetcher.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dex/fetcher') diff --git a/dex/fetcher/fetcher.go b/dex/fetcher/fetcher.go index f6807b5a5..64e576bd8 100644 --- a/dex/fetcher/fetcher.go +++ b/dex/fetcher/fetcher.go @@ -34,9 +34,9 @@ const ( gatherSlack = 100 * time.Millisecond // Interval used to collate almost-expired announces with fetches fetchTimeout = 5 * time.Second // Maximum allotted time to return an explicitly requested block maxUncleDist = 7 // Maximum allowed backward distance from the chain head - maxQueueDist = 32 // Maximum allowed distance from the chain head to queue - hashLimit = 256 // Maximum number of unique blocks a peer may have announced - blockLimit = 64 // Maximum number of unique blocks a peer may have delivered + maxQueueDist = 320 // Maximum allowed distance from the chain head to queue + hashLimit = 1024 // Maximum number of unique blocks a peer may have announced + blockLimit = 512 // Maximum number of unique blocks a peer may have delivered ) var ( -- cgit v1.2.3