eth/downloader: add a small additional check to the test

pull/974/head
Péter Szilágyi 9 years ago
parent ebf1eb9359
commit fe87feccb1
  1. 3
      eth/downloader/downloader_test.go

@ -330,4 +330,7 @@ func TestNonExistingParentAttack(t *testing.T) {
if len(bs) != 1 { if len(bs) != 1 {
t.Fatalf("retrieved block mismatch: have %v, want %v", 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")
}
} }

Loading…
Cancel
Save