diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 2a95b3d8e56451a1caae54806336b00041917580..cfa6257a3de528a4b02be2502919b91bec4c1704 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") + } }