You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snapcfg: load preverified hashes for single chain only (#19785)
## Summary
Part 3 of optimizing remote preverified hash loading (after #19641,
#19722).
- `LoadPreverified` now takes a `chainName` parameter and calls
`LoadRemotePreverified` instead of the old bulk variant that fetched all
10 chains
- Refactored `webseeds.Verify` to load preverified per-chain inside the
iteration loop instead of bulk-loading all chains upfront
- Removed unused functions: old bulk `LoadRemotePreverified`,
`registry.All`, `registry.ResetRaw`, `GetAllCurrentPreverified`
- Renamed `LoadRemotePreverifiedForChain` → `LoadRemotePreverified`
since it's now the only variant
## Test plan
- [x] Built `erigon` and `downloader` binaries
- [x] Tested `erigon seg reset --dry-run` with mainnet and hoodi
ephemeral datadirs
- [x] Tested `downloader verify_webseeds --chain=chiado
--preverified=embedded` to completion
- [x] Verified only the requested chain is fetched (confirmed via log
output)
## Tasks
- [ ] Cherry-pick merge commit to `release/3.4`
log.Root().Crit("Snapshot hashes for supported networks was not loaded. Please check your network connection and/or GitHub status here https://www.githubstatus.com/", "chain", chainName, "err", err)
334
334
returnfmt.Errorf("failed to fetch remote snapshot hashes for chain %s", chainName)
0 commit comments