diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-30 15:13:16 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-30 16:52:11 +0800 |
commit | 4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d (patch) | |
tree | 4bb5055690cae276a5480572b463cd06fa219f23 /core/chain_manager.go | |
parent | be935bff84d54cd7a7f4074e2326d62f664ba4e3 (diff) | |
download | dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.gz dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.bz2 dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.lz dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.xz dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.tar.zst dexon-4c490db6afeb5a48d3e8d1d65ea8ddc9811d0a6d.zip |
Use uint64 for block header timestamp
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index c89aae3f0..cdbdeb5ae 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -658,7 +658,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; block.Time() > max { + if max := time.Now().Unix() + maxTimeFutureBlocks; int64(block.Time()) > max { return i, fmt.Errorf("%v: BlockFutureErr, %v > %v", BlockFutureErr, block.Time(), max) } |