diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-14 20:44:54 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-14 20:44:54 +0800 |
commit | fe87feccb157b2426075523a592cabcb4c6d1cf0 (patch) | |
tree | 5524fe04d1ae27ec53baa358a1b5b9328e5f2609 | |
parent | ebf1eb9359617468103d05764f74796278dfa0d0 (diff) | |
download | go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.gz go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.bz2 go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.lz go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.xz go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.tar.zst go-tangerine-fe87feccb157b2426075523a592cabcb4c6d1cf0.zip |
eth/downloader: add a small additional check to the test
-rw-r--r-- | eth/downloader/downloader_test.go | 3 |
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") + } } |