Skip to content

Commit

Permalink
internal/cli: remove lightchaindata from removedb command
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Feb 18, 2025
1 parent 427ae01 commit 8664348
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internal/cli/removedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const (
chaindataPath string = "chaindata"
ancientPath string = "ancient"
trieCacheJournalPath string = "triecache"
lightchaindataPath string = "lightchaindata"
)

// MarkDown implements cli.MarkDown interface
Expand Down Expand Up @@ -102,14 +101,6 @@ func (c *RemoveDBCommand) Run(args []string) int {
log.Info("Full node ancient database missing", "path", path)
}

// Remove the light node database
path = nodeCfg.ResolvePath(lightchaindataPath)
if common.FileExist(path) {
confirmAndRemoveDB(c.UI, path, "light node database")
} else {
log.Info("Light node database missing", "path", path)
}

return 0
}

Expand Down

0 comments on commit 8664348

Please sign in to comment.