Commit ca74bcc4 authored by obscuren's avatar obscuren

cleaning up

parent 33afb10b
...@@ -333,6 +333,7 @@ out: ...@@ -333,6 +333,7 @@ out:
self.td = ethutil.Big0 self.td = ethutil.Big0
self.peer = nil self.peer = nil
} else { } else {
if !chain.IsTDError(err) {
chainManager.InsertChain(bchain) chainManager.InsertChain(bchain)
for _, block := range blocks { for _, block := range blocks {
self.Remove(block.Hash()) self.Remove(block.Hash())
...@@ -341,4 +342,5 @@ out: ...@@ -341,4 +342,5 @@ out:
} }
} }
} }
}
} }
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