Commit fe87fecc authored by Péter Szilágyi's avatar Péter Szilágyi

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

parent ebf1eb93
...@@ -330,4 +330,7 @@ func TestNonExistingParentAttack(t *testing.T) { ...@@ -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")
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment