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/chain_manager.go | |
parent | b08abe64e4d2e3fa8d10c89647595226d6b31b19 (diff) | |
download | go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.gz go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.tar.zst go-tangerine-5d6d40f329410f20d9ceb92d31985a883d94cb24.zip |
Use uint64 on ts in chain_manager, block_processor
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 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) } |