aboutsummaryrefslogtreecommitdiffstats
path: root/block_pool.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-17 19:12:55 +0800
committerobscuren <geffobscura@gmail.com>2014-11-17 19:12:55 +0800
commitca74bcc4cdf389b5ef5520f9ab5a7aec08424f30 (patch)
tree1821adb34b5ce921ec0fb5322c02882b7e51e5c1 /block_pool.go
parent33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75 (diff)
downloadgo-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.tar
go-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.tar.gz
go-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.tar.bz2
go-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.tar.lz
go-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.tar.xz
go-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.tar.zst
go-tangerine-ca74bcc4cdf389b5ef5520f9ab5a7aec08424f30.zip
cleaning up
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())
+ }
}
}
}