Skip to content

[cherry-pick] [r3.4] snapcfg: load preverified hashes for single chain only#19786

Merged
wmitsuda merged 1 commit into
release/3.4from
cherry-pick-PR19785-to-release-3.4
Mar 11, 2026
Merged

[cherry-pick] [r3.4] snapcfg: load preverified hashes for single chain only#19786
wmitsuda merged 1 commit into
release/3.4from
cherry-pick-PR19785-to-release-3.4

Conversation

@wmitsuda
Copy link
Copy Markdown
Member

Cherry-pick of #19785 (582f1fb) to release/3.4.

## 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`
@wmitsuda wmitsuda enabled auto-merge (squash) March 11, 2026 01:24
wmitsuda added a commit that referenced this pull request Mar 11, 2026
## Summary
- Add skill that cleans up local worktrees and branches for merged
GitHub PRs
- Automatically handles cherry-pick instructions found in PR body (e.g.,
`- [ ] Cherry-pick merge commit to release/3.4`)
- Creates cherry-pick PR, updates original PR to mark the task done

## Test plan
- [x] Tested end-to-end against PR #19785 — worktree removed, branch
deleted, cherry-pick PR #19786 created, original PR updated
@wmitsuda wmitsuda merged commit a4c592f into release/3.4 Mar 11, 2026
22 checks passed
@wmitsuda wmitsuda deleted the cherry-pick-PR19785-to-release-3.4 branch March 11, 2026 02:37
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