mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
fix unit test: remove td test
This commit is contained in:
parent
1eda4b653c
commit
72bc872939
1 changed files with 0 additions and 11 deletions
|
|
@ -409,17 +409,6 @@ func testReorg(t *testing.T, first, second []int64, td int64, full bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Make sure the chain total difficulty is the correct one
|
|
||||||
want := new(big.Int).Add(blockchain.genesisBlock.Difficulty(), big.NewInt(td))
|
|
||||||
if full {
|
|
||||||
if have := blockchain.GetTdByHash(blockchain.CurrentBlock().Hash()); have.Cmp(want) != 0 {
|
|
||||||
t.Errorf("total difficulty mismatch: have %v, want %v", have, want)
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if have := blockchain.GetTdByHash(blockchain.CurrentHeader().Hash()); have.Cmp(want) != 0 {
|
|
||||||
t.Errorf("total difficulty mismatch: have %v, want %v", have, want)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests that the insertion functions detect banned hashes.
|
// Tests that the insertion functions detect banned hashes.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue