aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-08 19:43:55 +0800
committerzelig <viktor.tron@gmail.com>2015-04-09 20:58:35 +0800
commit262714fc6c269e0a3aa39892954b03db9418e649 (patch)
tree0d3ff6490f7df32b09f20c89c5900e0219759fe8 /core/chain_manager.go
parentcbd0b42060d537d4d899b593be1ecd5ffdbd301a (diff)
downloaddexon-262714fc6c269e0a3aa39892954b03db9418e649.tar
dexon-262714fc6c269e0a3aa39892954b03db9418e649.tar.gz
dexon-262714fc6c269e0a3aa39892954b03db9418e649.tar.bz2
dexon-262714fc6c269e0a3aa39892954b03db9418e649.tar.lz
dexon-262714fc6c269e0a3aa39892954b03db9418e649.tar.xz
dexon-262714fc6c269e0a3aa39892954b03db9418e649.tar.zst
dexon-262714fc6c269e0a3aa39892954b03db9418e649.zip
future queued block support
- queued bool // flag for blockpool to skip TD check - set to true when future block queued - in checkTD: skip check if queued - TODO: add test (insertchain sets future block)
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index 3ab95d272..f05a6bd72 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -471,6 +471,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
// Do not penelise on future block. We'll need a block queue eventually that will queue
// future block for future use
if err == BlockFutureErr {
+ block.SetQueued(true)
self.futureBlocks.Push(block)
stats.queued++
continue