Skip to content

Commit

Permalink
Open reset blocks migration: to delete .torrent files also #4404 (#4404
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AskAlexSharov committed Jun 8, 2022
1 parent cbe2566 commit c970641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions turbo/snapshotsync/snap/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c970641

Please sign in to comment.