aboutsummaryrefslogtreecommitdiffstats
path: root/block_pool.go
diff options
context:
space:
mode:
Diffstat (limited to 'block_pool.go')
-rw-r--r--block_pool.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/block_pool.go b/block_pool.go
index 52f2f4f86..f89ee71df 100644
--- a/block_pool.go
+++ b/block_pool.go
@@ -316,9 +316,9 @@ out:
if len(blocks) > 0 {
chainManager := self.eth.ChainManager()
// Test and import
- chain := chain.NewChain(blocks)
- _, err := chainManager.TestChain(chain)
- if err != nil {
+ bchain := chain.NewChain(blocks)
+ _, err := chainManager.TestChain(bchain)
+ if err != nil && !chain.IsTDError(err) {
poollogger.Debugln(err)
self.Reset()
@@ -330,7 +330,7 @@ out:
self.td = ethutil.Big0
self.peer = nil
} else {
- chainManager.InsertChain(chain)
+ chainManager.InsertChain(bchain)
for _, block := range blocks {
self.Remove(block.Hash())
}