Commit ca74bcc4 authored by obscuren's avatar obscuren

cleaning up

parent 33afb10b
...@@ -333,9 +333,11 @@ out: ...@@ -333,9 +333,11 @@ out:
self.td = ethutil.Big0 self.td = ethutil.Big0
self.peer = nil self.peer = nil
} else { } else {
chainManager.InsertChain(bchain) if !chain.IsTDError(err) {
for _, block := range blocks { chainManager.InsertChain(bchain)
self.Remove(block.Hash()) for _, block := range blocks {
self.Remove(block.Hash())
}
} }
} }
} }
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment