diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-06 20:32:53 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-07 15:57:34 +0800 |
commit | 4800c94392e814a2cb9d343aab4706be0cd0851d (patch) | |
tree | bff7b3bf3763d58451dcee85961e05895da3ca5d /eth/downloader/downloader_test.go | |
parent | 97c37356fdcfac8b704c3d75b33e322a737c4e55 (diff) | |
download | go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar.gz go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar.zst go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.zip |
eth/downloader: prioritize block fetch based on chain position, cap memory use
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r-- | eth/downloader/downloader_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 872ea02eb..11834d788 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -128,7 +128,7 @@ func TestDownload(t *testing.T) { t.Error("download error", err) } - inqueue := len(tester.downloader.queue.blocks) + inqueue := len(tester.downloader.queue.blockCache) if inqueue != targetBlocks { t.Error("expected", targetBlocks, "have", inqueue) } @@ -151,7 +151,7 @@ func TestMissing(t *testing.T) { t.Error("download error", err) } - inqueue := len(tester.downloader.queue.blocks) + inqueue := len(tester.downloader.queue.blockCache) if inqueue != targetBlocks { t.Error("expected", targetBlocks, "have", inqueue) } |