cleaning up

This commit is contained in:
obscuren
2014-11-17 12:12:55 +01:00
parent 33afb10b0d
commit ca74bcc4cd
2 changed files with 141 additions and 162 deletions

View File

@ -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())
}
}
}
}