aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-05-24 21:40:54 +0800
committerFelix Lange <fjl@twurst.com>2017-05-24 21:40:54 +0800
commit11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0 (patch)
tree46fa2d1af35a5997255bc6d36162b989d76cdb4c /consensus
parent069cb661c3587a0ff5f74c85775c2849a400cb9c (diff)
downloaddexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar
dexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.gz
dexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.bz2
dexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.lz
dexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.xz
dexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.zst
dexon-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.zip
consensus/ethash: fix TestCalcDifficulty
Diffstat (limited to 'consensus')
-rw-r--r--consensus/ethash/consensus_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/consensus/ethash/consensus_test.go b/consensus/ethash/consensus_test.go
index 78464bd22..0a375b0bc 100644
--- a/consensus/ethash/consensus_test.go
+++ b/consensus/ethash/consensus_test.go
@@ -74,7 +74,7 @@ func TestCalcDifficulty(t *testing.T) {
number := new(big.Int).Sub(test.CurrentBlocknumber, big.NewInt(1))
diff := CalcDifficulty(config, test.CurrentTimestamp, &types.Header{
Number: number,
- Time: test.ParentTimestamp,
+ Time: new(big.Int).SetUint64(test.ParentTimestamp),
Difficulty: test.ParentDifficulty,
})
if diff.Cmp(test.CurrentDifficulty) != 0 {