Skip to content

db/snapcfg: internalize SnapshotSource enum, drop stale TODOs#21079

Merged
wmitsuda merged 2 commits into
mainfrom
wmitsuda/internalize-snapshot-source
May 10, 2026
Merged

db/snapcfg: internalize SnapshotSource enum, drop stale TODOs#21079
wmitsuda merged 2 commits into
mainfrom
wmitsuda/internalize-snapshot-source

Conversation

@wmitsuda
Copy link
Copy Markdown
Member

@wmitsuda wmitsuda commented May 9, 2026

Summary

Test plan

  • go build ./db/snapcfg/... ./cmd/downloader/... clean
  • make lint clean
  • CI green

wmitsuda added 2 commits May 9, 2026 15:18
Define SnapshotSource locally in db/snapcfg/cdn.go alongside the other
helpers already mirrored from erigon-snapshot/embed.go, and switch
FetchChainToml + its callers to the local type. cmd/downloader no
longer imports erigon-snapshot at all; db/snapcfg still does for the
embedded chain TOMLs and the webseed sub-package.
The duplicated helpers (cloudflareHeaders, getURLByChain,
fetchSnapshotHashes) have been removed upstream in
erigontech/erigon-snapshot#1266 (merged to release/3.4); cherry-picks
to main and performance are open as #1267 and #1268. The TODO markers
have served their purpose.
@wmitsuda wmitsuda added this pull request to the merge queue May 10, 2026
Merged via the queue into main with commit f4fbe40 May 10, 2026
37 of 38 checks passed
@wmitsuda wmitsuda deleted the wmitsuda/internalize-snapshot-source branch May 10, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants