aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-04 00:00:54 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-08 18:23:58 +0800
commitb40c796ff726d54efc8c7933e1586869c2a0985a (patch)
tree435c1cda94d525f7e3a80be599bc02c6003e274d /eth/downloader/downloader_test.go
parent1d7bf3d39fbd6b1a53913bb309bc07500b220ded (diff)
downloadgo-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.tar
go-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.tar.gz
go-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.tar.bz2
go-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.tar.lz
go-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.tar.xz
go-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.tar.zst
go-tangerine-b40c796ff726d54efc8c7933e1586869c2a0985a.zip
eth/downloader: preallocate the block cache
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r--eth/downloader/downloader_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index cab213499..4e2d527b9 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -186,7 +186,7 @@ func TestSynchronisation(t *testing.T) {
if err := tester.sync("peer", hashes[0]); err != nil {
t.Fatalf("failed to synchronise blocks: %v", err)
}
- if queued := len(tester.downloader.queue.blockCache); queued != targetBlocks {
+ if queued := len(tester.downloader.queue.blockPool); queued != targetBlocks {
t.Fatalf("synchronised block mismatch: have %v, want %v", queued, targetBlocks)
}
}