Skip to content

Commit fe87fec

Browse files
committed
eth/downloader: add a small additional check to the test
1 parent ebf1eb9 commit fe87fec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎eth/downloader/downloader_test.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,7 @@ func TestNonExistingParentAttack(t *testing.T) {
330330
if len(bs) != 1 {
331331
t.Fatalf("retrieved block mismatch: have %v, want %v", len(bs), 1)
332332
}
333+
if !tester.hasBlock(bs[0].ParentHash()) {
334+
t.Fatalf("tester doesn't know about the origin hash")
335+
}
333336
}

0 commit comments

Comments
 (0)