Skip to content

Commit

Permalink
Caplin: fixed edge case with archivial node snapshots (#12788)
Browse files Browse the repository at this point in the history
Co-authored-by: taratorio <[email protected]>
  • Loading branch information
Giulio2002 and taratorio authored Nov 19, 2024
1 parent 439f28b commit 87ba2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erigon-lib/downloader/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func seedableSegmentFiles(dir string, chainName string, skipSeedableCheck bool)
for _, fPath := range files {
_, name := filepath.Split(fPath)
// A bit hacky but whatever... basically caplin is incompatible with enums.
if strings.Contains(dir, "caplin") {
if strings.HasSuffix(fPath, path.Join("caplin", name)) {
res = append(res, path.Join("caplin", name))
continue
}
Expand Down

0 comments on commit 87ba2ed

Please sign in to comment.