aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-04 22:35:23 +0800
committerobscuren <geffobscura@gmail.com>2015-04-04 22:35:23 +0800
commite1ed8c33bd99a87d2c3339fe28a602b1af8b85fc (patch)
treefcbb59358cab8df4e6aa005e22e5e9a22edcb5b4 /core/block_processor.go
parent29f120206e16f80176a0cb309162cc7f889be0b0 (diff)
downloadgo-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar
go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.gz
go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.bz2
go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.lz
go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.xz
go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.tar.zst
go-tangerine-e1ed8c33bd99a87d2c3339fe28a602b1af8b85fc.zip
Improved chain manager, improved block processor, fixed tests
* ChainManager allows cached future blocks for later processing * BlockProcessor allows a 4 second window on future blocks * Fixed tests
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 c9d0c2228..6b18d4cf9 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -260,7 +260,7 @@ func (sm *BlockProcessor) ValidateHeader(block, parent *types.Header) error {
}
// Allow future blocks up to 10 seconds
- if int64(block.Time)+10 > time.Now().Unix() {
+ if int64(block.Time) > time.Now().Unix()+4 {
return BlockFutureErr
}