From 218bfeb60e9a9e7f0874db18135e7ad633ff83f1 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 4 Apr 2015 12:40:48 +0200 Subject: check for nil block (tmp). @zelig this needs to be addressed in the block pool. --- core/chain_manager.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/chain_manager.go b/core/chain_manager.go index b9a08b13d..3dcee6a93 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -440,6 +440,9 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { var queue = make([]interface{}, len(chain)) var queueEvent = queueEvent{queue: queue} for i, block := range chain { + if block == nil { + continue + } // Call in to the block processor and check for errors. It's likely that if one block fails // all others will fail too (unless a known block is returned). td, logs, err := self.processor.Process(block) -- cgit