Skip to content

cp: fix seg reset not removing chaindata (#20908)#20919

Merged
AskAlexSharov merged 1 commit into
release/3.4from
cherry-pick-20908-to-release-3.4
Apr 30, 2026
Merged

cp: fix seg reset not removing chaindata (#20908)#20919
AskAlexSharov merged 1 commit into
release/3.4from
cherry-pick-20908-to-release-3.4

Conversation

@sudeepdino008

Copy link
Copy Markdown
Member
  • `seg reset` regressed in Support snapshot reset with symlinks #18273: `removeLocal` from the CLI is wired into `reset.Reset.RemoveUnknown` but not `RemoveLocal`, which gates chaindata + Heimdall/PolygonBridge DB removal in `db/datadir/reset/reset.go`. Result: `seg reset` no longer touches chaindata at all.
  • Library-level `TestResetChaindata` exists but sets `RemoveLocal: true` directly, so the CLI plumbing was uncovered.

closes #20260

- \`seg reset\` regressed in #18273: \`removeLocal\` from the CLI is
wired into \`reset.Reset.RemoveUnknown\` but not \`RemoveLocal\`, which
gates chaindata + Heimdall/PolygonBridge DB removal in
\`db/datadir/reset/reset.go\`. Result: \`seg reset\` no longer touches
chaindata at all.
- Library-level \`TestResetChaindata\` exists but sets \`RemoveLocal:
true\` directly, so the CLI plumbing was uncovered.

closes #20260
@sudeepdino008 sudeepdino008 requested review from anacrolix and removed request for AskAlexSharov and Giulio2002 April 30, 2026 06:39
@AskAlexSharov AskAlexSharov enabled auto-merge (squash) April 30, 2026 06:49
@AskAlexSharov AskAlexSharov merged commit 6a0153e into release/3.4 Apr 30, 2026
21 checks passed
@AskAlexSharov AskAlexSharov deleted the cherry-pick-20908-to-release-3.4 branch April 30, 2026 06:51
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