mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-03 10:03:47 +00:00
eth/downloader: add a small additional check to the test
This commit is contained in:
parent
ebf1eb9359
commit
fe87feccb1
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue