aboutsummaryrefslogtreecommitdiffstats
path: root/block_pool.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-11 19:16:36 +0800
committerobscuren <geffobscura@gmail.com>2014-11-11 19:16:36 +0800
commit75ee3b3f089e703b728bb301cc6b2abe4c111c41 (patch)
tree9087d865e296cbb93c590fe15cd9942353b70058 /block_pool.go
parent9509322ecd8e709ce8a17442836b6ff15ba2edff (diff)
downloaddexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.gz
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.tar.zst
dexon-75ee3b3f089e703b728bb301cc6b2abe4c111c41.zip
debugging code
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())
}