diff options
author | Felix Lange <fjl@twurst.com> | 2017-05-24 21:40:54 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-05-24 21:40:54 +0800 |
commit | 11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0 (patch) | |
tree | 46fa2d1af35a5997255bc6d36162b989d76cdb4c /consensus | |
parent | 069cb661c3587a0ff5f74c85775c2849a400cb9c (diff) | |
download | go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.gz go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.bz2 go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.lz go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.xz go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.tar.zst go-tangerine-11cf5b7eadb7fcfa56a0cb98ec4ebbddce00f4c0.zip |
consensus/ethash: fix TestCalcDifficulty
Diffstat (limited to 'consensus')
-rw-r--r-- | consensus/ethash/consensus_test.go | 2 |
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 { |