Commit c8a8ad3
authored
cmd/utils/app: fix seg reset not removing chaindata (#20908)
- \`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 #202601 parent 5b0ba8d commit c8a8ad3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments