From cdcf2357ebddec1fa0303687e50e9ff27b2b14c0 Mon Sep 17 00:00:00 2001 From: Giulio rebuffo Date: Sat, 9 Nov 2024 04:21:25 +0100 Subject: [PATCH] Caplin: support to release caplin state hashes (#12691) --- erigon-lib/downloader/util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erigon-lib/downloader/util.go b/erigon-lib/downloader/util.go index 3887820a23a..cde6830f25a 100644 --- a/erigon-lib/downloader/util.go +++ b/erigon-lib/downloader/util.go @@ -273,7 +273,11 @@ func AllTorrentPaths(dirs datadir.Dirs) ([]string, error) { if err != nil { return nil, err } - files = append(append(append(append(files, l1...), l2...), l3...), l4...) + l5, err := dir2.ListFiles(dirs.SnapCaplin, ".torrent") + if err != nil { + return nil, err + } + files = append(append(append(append(append(files, l1...), l2...), l3...), l4...), l5...) return files, nil }