Skip to content

Commit 2d0e6ce

Browse files
wmitsudaclaude
andauthored
downloader: fix double-prefixed webseed metainfo URL (#19200)
## Summary - PR #18755 ("Add webseed checker") accidentally passed `base` for both `webseedUrlBase` and `name` in `GetMetainfoFromWebseed`, producing doubled URLs like `https://host/https://host/.torrent` which return HTTP 404 - Fix: pass the snapshot `name` instead of `base` as the second argument Fixes #19094 ## Test plan - [x] Built and ran an ephemeral mainnet instance for 2 minutes — no `"error fetching metainfo from webseeds"` warnings, all 305/305 file metadata fetched, webseed download steady at ~62-70 MB/s 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6dfad21 commit 2d0e6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ func (d *Downloader) fetchMetainfoFromWebseeds(ctx context.Context, name string,
10741074
buf.Reset()
10751075
var mi metainfo.MetaInfo
10761076
var w io.Writer = &buf
1077-
mi, err = GetMetainfoFromWebseed(ctx, base, base, d.metainfoHttpClient, w)
1077+
mi, err = GetMetainfoFromWebseed(ctx, base, name, d.metainfoHttpClient, w)
10781078
if err != nil {
10791079
d.log(log.LvlDebug, "error fetching metainfo from webseed", "err", err, "name", name, "webseed", base)
10801080
// Whither error?

0 commit comments

Comments
 (0)