mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
downloader: whitelist only .seg.torrent files. (#8729)
This commit is contained in:
parent
957a94e551
commit
9a9db2d90b
@ -227,13 +227,11 @@ func (d *WebSeeds) downloadTorrentFilesFromProviders(ctx context.Context, rootDi
|
||||
continue
|
||||
}
|
||||
addedNew++
|
||||
if strings.HasSuffix(name, ".v.torrent") || strings.HasSuffix(name, ".ef.torrent") {
|
||||
if !strings.HasSuffix(name, ".seg.torrent") {
|
||||
_, fName := filepath.Split(name)
|
||||
if strings.HasPrefix(fName, "commitment") {
|
||||
d.logger.Log(d.verbosity, "[snapshots] webseed has .torrent, but we skip it because we don't support it yet", "name", name)
|
||||
d.logger.Log(d.verbosity, "[snapshots] webseed has .torrent, but we skip it because this type not supported yet", "name", fName)
|
||||
continue
|
||||
}
|
||||
}
|
||||
name := name
|
||||
tUrls := tUrls
|
||||
e.Go(func() error {
|
||||
|
Loading…
Reference in New Issue
Block a user