aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-14 20:44:54 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-14 20:44:54 +0800
commitfe87feccb157b2426075523a592cabcb4c6d1cf0 (patch)
tree5524fe04d1ae27ec53baa358a1b5b9328e5f2609 /eth/downloader
parentebf1eb9359617468103d05764f74796278dfa0d0 (diff)
downloaddexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar
dexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.gz
dexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.bz2
dexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.lz
dexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.xz
dexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.zst
dexon-fe87feccb157b2426075523a592cabcb4c6d1cf0.zip
eth/downloader: add a small additional check to the test
Diffstat (limited to 'eth/downloader')
-rw-r--r--eth/downloader/downloader_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index 2a95b3d8e..cfa6257a3 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -330,4 +330,7 @@ func TestNonExistingParentAttack(t *testing.T) {
if len(bs) != 1 {
t.Fatalf("retrieved block mismatch: have %v, want %v", len(bs), 1)
}
+ if !tester.hasBlock(bs[0].ParentHash()) {
+ t.Fatalf("tester doesn't know about the origin hash")
+ }
}