diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-08 19:21:06 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-07-08 19:21:06 +0800 |
commit | 5d6d40f329410f20d9ceb92d31985a883d94cb24 (patch) | |
tree | da3fb90259dece012c9f4daa972b76542d4870d8 /core/block_processor.go | |
parent | b08abe64e4d2e3fa8d10c89647595226d6b31b19 (diff) | |
download | dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.gz dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.bz2 dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.lz dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.xz dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.zst dexon-5d6d40f329410f20d9ceb92d31985a883d94cb24.zip |
Use uint64 on ts in chain_manager, block_processor
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index e912c0b6e..f50ebb55a 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -386,7 +386,7 @@ func ValidateHeader(pow pow.PoW, block *types.Header, parent *types.Block, check return BlockEqualTSErr } - expd := CalcDifficulty(int64(block.Time), int64(parent.Time()), parent.Difficulty()) + expd := CalcDifficulty(block.Time, parent.Time(), parent.Difficulty()) if expd.Cmp(block.Difficulty) != 0 { return fmt.Errorf("Difficulty check failed for block %v, %v", block.Difficulty, expd) } |