diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-11 12:14:27 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | a03655ca09836a282db33fadf2fcd78d898364a4 (patch) | |
tree | 733d5b6289e0022ce065f7ec14b39e53d342e8f3 /dex/fetcher | |
parent | 36f960e0bf3b3a9e3ba460dad2e8d4c870a8b8b1 (diff) | |
download | go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.tar go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.tar.gz go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.tar.bz2 go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.tar.lz go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.tar.xz go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.tar.zst go-tangerine-a03655ca09836a282db33fadf2fcd78d898364a4.zip |
dex: fetcher: modify parameters to speedup syncing (#239)
Diffstat (limited to 'dex/fetcher')
-rw-r--r-- | dex/fetcher/fetcher.go | 6 |
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 ( |