diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-19 20:17:22 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-19 20:17:22 +0800 |
commit | c6a11fe372a5d515f443256484434dbc5c21dfa1 (patch) | |
tree | f86606b4ad66329ced610de2c9e530941a4b78dc | |
parent | 3b997c3e169dc3dee8f41d9ece5341ef04d7eeaf (diff) | |
parent | 4d5501c46af2f8c02dd6e361a01b943608958130 (diff) | |
download | dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.tar dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.tar.gz dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.tar.bz2 dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.tar.lz dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.tar.xz dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.tar.zst dexon-c6a11fe372a5d515f443256484434dbc5c21dfa1.zip |
Merge pull request #1680 from maran/fix_removedb
cmd/geth: Fix chain purging from cmd line
-rw-r--r-- | cmd/geth/chaincmd.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index 876b8c6ba..c42045918 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -115,17 +115,16 @@ func exportChain(ctx *cli.Context) { } func removeDB(ctx *cli.Context) { - confirm, err := utils.PromptConfirm("Remove local databases?") + confirm, err := utils.PromptConfirm("Remove local database?") if err != nil { utils.Fatalf("%v", err) } if confirm { - fmt.Println("Removing chain and state databases...") + fmt.Println("Removing chaindata...") start := time.Now() - os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "blockchain")) - os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "state")) + os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "chaindata")) fmt.Printf("Removed in %v\n", time.Since(start)) } else { |