From c97064173e5e85d07b6b2993d320bb3db487c3b2 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 8 Jun 2022 09:51:07 +0700 Subject: [PATCH] Open reset blocks migration: to delete .torrent files also #4404 (#4404) --- turbo/snapshotsync/snap/files.go | 1 + 1 file changed, 1 insertion(+) diff --git a/turbo/snapshotsync/snap/files.go b/turbo/snapshotsync/snap/files.go index 4f3328cda..e5ff027a0 100644 --- a/turbo/snapshotsync/snap/files.go +++ b/turbo/snapshotsync/snap/files.go @@ -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())