aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-07-08 19:21:06 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-07-08 19:21:06 +0800
commit5d6d40f329410f20d9ceb92d31985a883d94cb24 (patch)
treeda3fb90259dece012c9f4daa972b76542d4870d8 /core/block_processor.go
parentb08abe64e4d2e3fa8d10c89647595226d6b31b19 (diff)
downloaddexon-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.go2
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)
}