aboutsummaryrefslogtreecommitdiffstats
path: root/dex/fetcher/fetcher.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-11 12:14:27 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commitabcb28c8854c74942dd731f971dff2128fe0084f (patch)
tree2ad508e5202747d98905c50b936717fcbc73a898 /dex/fetcher/fetcher.go
parentaba923d4065e0b1f716a54539058a932bd6a89e0 (diff)
downloaddexon-abcb28c8854c74942dd731f971dff2128fe0084f.tar
dexon-abcb28c8854c74942dd731f971dff2128fe0084f.tar.gz
dexon-abcb28c8854c74942dd731f971dff2128fe0084f.tar.bz2
dexon-abcb28c8854c74942dd731f971dff2128fe0084f.tar.lz
dexon-abcb28c8854c74942dd731f971dff2128fe0084f.tar.xz
dexon-abcb28c8854c74942dd731f971dff2128fe0084f.tar.zst
dexon-abcb28c8854c74942dd731f971dff2128fe0084f.zip
dex: fetcher: modify parameters to speedup syncing (#239)
Diffstat (limited to 'dex/fetcher/fetcher.go')
-rw-r--r--dex/fetcher/fetcher.go6
1 files changed, 3 insertions, 3 deletions
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 (