eth/downloader: remove unrequested tasks anyway

This commit is contained in:
Felix Lange 2017-05-31 04:14:15 +02:00 committed by Péter Szilágyi
parent b48521a3e7
commit 829a042087
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -294,8 +294,8 @@ func (s *stateSync) process(req *stateReq) (nproc int, err error) {
return 0, fmt.Errorf("invalid state node %s: %v", hash.TerminalString(), err)
} else if err == nil {
nproc++
delete(req.tasks, hash)
}
delete(req.tasks, hash)
}
if err := batch.Write(); err != nil {
return 0, err