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, 5 insertions, 3 deletions
diff --git a/block_pool.go b/block_pool.go
index 090871fd3..f9bd3b28e 100644
--- a/block_pool.go
+++ b/block_pool.go
@@ -333,9 +333,11 @@ out:
self.td = ethutil.Big0
self.peer = nil
} else {
- chainManager.InsertChain(bchain)
- for _, block := range blocks {
- self.Remove(block.Hash())
+ if !chain.IsTDError(err) {
+ chainManager.InsertChain(bchain)
+ for _, block := range blocks {
+ self.Remove(block.Hash())
+ }
}
}
}