We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069cb66 commit 11cf5b7Copy full SHA for 11cf5b7
consensus/ethash/consensus_test.go
@@ -74,7 +74,7 @@ func TestCalcDifficulty(t *testing.T) {
74
number := new(big.Int).Sub(test.CurrentBlocknumber, big.NewInt(1))
75
diff := CalcDifficulty(config, test.CurrentTimestamp, &types.Header{
76
Number: number,
77
- Time: test.ParentTimestamp,
+ Time: new(big.Int).SetUint64(test.ParentTimestamp),
78
Difficulty: test.ParentDifficulty,
79
})
80
if diff.Cmp(test.CurrentDifficulty) != 0 {
0 commit comments