mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-08 17:21:47 +00:00
consensus/ethash: fix TestCalcDifficulty
This commit is contained in:
parent
069cb661c3
commit
11cf5b7ead
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ func TestCalcDifficulty(t *testing.T) {
|
||||||
number := new(big.Int).Sub(test.CurrentBlocknumber, big.NewInt(1))
|
number := new(big.Int).Sub(test.CurrentBlocknumber, big.NewInt(1))
|
||||||
diff := CalcDifficulty(config, test.CurrentTimestamp, &types.Header{
|
diff := CalcDifficulty(config, test.CurrentTimestamp, &types.Header{
|
||||||
Number: number,
|
Number: number,
|
||||||
Time: test.ParentTimestamp,
|
Time: new(big.Int).SetUint64(test.ParentTimestamp),
|
||||||
Difficulty: test.ParentDifficulty,
|
Difficulty: test.ParentDifficulty,
|
||||||
})
|
})
|
||||||
if diff.Cmp(test.CurrentDifficulty) != 0 {
|
if diff.Cmp(test.CurrentDifficulty) != 0 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue