aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-16 23:43:19 +0800
committerobscuren <geffobscura@gmail.com>2015-05-16 23:43:19 +0800
commit28ba374f27b81ba143005e285be6f8a986134936 (patch)
tree270ba0f939c56ae82e6a98b8ef15a0341360aee1 /cmd/geth
parentad99089567757c315bc2e477c6f889b9c2c8789f (diff)
downloaddexon-28ba374f27b81ba143005e285be6f8a986134936.tar.gz
dexon-28ba374f27b81ba143005e285be6f8a986134936.tar.zst
dexon-28ba374f27b81ba143005e285be6f8a986134936.zip
cmd/geth: delete state db on upgradedb command
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index e9deec61f..817337e20 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -574,6 +574,7 @@ func upgradeDb(ctx *cli.Context) {
ethereum.ExtraDb().Close()
os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "blockchain"))
+ os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "state"))
ethereum, err = eth.New(cfg)
if err != nil {