Skip to content

Commit 11cf5b7

Browse files
committed
consensus/ethash: fix TestCalcDifficulty
1 parent 069cb66 commit 11cf5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/ethash/consensus_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func TestCalcDifficulty(t *testing.T) {
7474
number := new(big.Int).Sub(test.CurrentBlocknumber, big.NewInt(1))
7575
diff := CalcDifficulty(config, test.CurrentTimestamp, &types.Header{
7676
Number: number,
77-
Time: test.ParentTimestamp,
77+
Time: new(big.Int).SetUint64(test.ParentTimestamp),
7878
Difficulty: test.ParentDifficulty,
7979
})
8080
if diff.Cmp(test.CurrentDifficulty) != 0 {

0 commit comments

Comments
 (0)