From 882e1218e8eb8663566cbd55543e48940c540ad6 Mon Sep 17 00:00:00 2001 From: Sarlor Date: Thu, 6 Sep 2018 17:05:33 +0800 Subject: [PATCH] Update blockchain.go core, blockchain: optimization code. --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 63f60ca280..d20b3c4fa9 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -697,7 +697,7 @@ func (bc *BlockChain) procFutureBlocks() { // Insert one by one as chain insertion needs contiguous ancestry between blocks for i := range blocks { - bc.InsertChain(blocks[i : i+1]) + bc.InsertChain(blocks[i]) } } }