提交 218bfeb6 编写于 作者: O obscuren

check for nil block (tmp).

@zelig this needs to be addressed in the block pool.
上级 a0e44e32
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册