Open reset blocks migration: to delete .torrent files also #4404 (#4404)

This commit is contained in:
Alex Sharov 2022-06-08 09:51:07 +07:00 committed by GitHub
parent cbe25665db
commit c97064173e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,6 +228,7 @@ func RemoveNonPreverifiedFiles(chainName, snapDir string) error {
withoutExt := fname[0 : len(fname)-len(ext)]
if _, ok := keep[withoutExt]; !ok {
_ = os.Remove(f.Path)
_ = os.Remove(f.Path + ".torrent")
} else {
if f.T == Transactions {
idxPath := IdxFileName(f.From, f.To, Transactions2Block.String())