Skip to content

cmd/utils/app: fix seg reset not removing chaindata#20908

Merged
AskAlexSharov merged 1 commit into
mainfrom
sudeep/seg-reset-chaindata
Apr 30, 2026
Merged

cmd/utils/app: fix seg reset not removing chaindata#20908
AskAlexSharov merged 1 commit into
mainfrom
sudeep/seg-reset-chaindata

Conversation

@sudeepdino008

@sudeepdino008 sudeepdino008 commented Apr 29, 2026

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

@AskAlexSharov AskAlexSharov added this pull request to the merge queue Apr 30, 2026
Merged via the queue into main with commit c8a8ad3 Apr 30, 2026
38 checks passed
@AskAlexSharov AskAlexSharov deleted the sudeep/seg-reset-chaindata branch April 30, 2026 04:40
AskAlexSharov pushed a commit that referenced this pull request Apr 30, 2026
- \`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
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.

seg reset doesn't remove chaindata anymore

2 participants