diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-08 19:06:36 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-08 19:12:00 +0800 |
commit | 63c6cedb14cbd461733e33ffac016dc7d8e431ae (patch) | |
tree | a1593178989ed92561b37dceb90fbf7401af4b10 /eth/downloader/queue.go | |
parent | 4b2dd44711a04c639ecde68806455ccf7244acce (diff) | |
download | go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.gz go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.bz2 go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.lz go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.xz go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.tar.zst go-tangerine-63c6cedb14cbd461733e33ffac016dc7d8e431ae.zip |
eth/downloader: cap the hash ban set, add test for it
Diffstat (limited to 'eth/downloader/queue.go')
-rw-r--r-- | eth/downloader/queue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 3c99efb81..7abbd42fd 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -16,7 +16,7 @@ import ( "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) -const ( +var ( blockCacheLimit = 8 * MaxBlockFetch // Maximum number of blocks to cache before throttling the download ) |