aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-06 20:32:53 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-07 15:57:34 +0800
commit4800c94392e814a2cb9d343aab4706be0cd0851d (patch)
treebff7b3bf3763d58451dcee85961e05895da3ca5d /eth/downloader/downloader_test.go
parent97c37356fdcfac8b704c3d75b33e322a737c4e55 (diff)
downloadgo-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar
go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar.gz
go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar.bz2
go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar.lz
go-tangerine-4800c94392e814a2cb9d343aab4706be0cd0851d.tar.xz
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.go4
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)
}