aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.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/chain_manager.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/chain_manager.go')
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index bd49bafc2..3c5eb0e8a 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -611,7 +611,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) (int, error) {
// Allow up to MaxFuture second in the future blocks. If this limit
// is exceeded the chain is discarded and processed at a later time
// if given.
- if max := time.Now().Unix() + maxTimeFutureBlocks; int64(block.Time()) > max {
+ if max := uint64(time.Now().Unix()) + maxTimeFutureBlocks; block.Time() > max {
return i, fmt.Errorf("%v: BlockFutureErr, %v > %v", BlockFutureErr, block.Time(), max)
}