aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-16 23:48:49 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-16 23:48:49 +0800
commit426c70ac0b6f0051e4e618c1eff231a6bed8e6ee (patch)
tree270ba0f939c56ae82e6a98b8ef15a0341360aee1
parentad99089567757c315bc2e477c6f889b9c2c8789f (diff)
parent28ba374f27b81ba143005e285be6f8a986134936 (diff)
downloaddexon-426c70ac0b6f0051e4e618c1eff231a6bed8e6ee.tar.gz
dexon-426c70ac0b6f0051e4e618c1eff231a6bed8e6ee.tar.zst
dexon-426c70ac0b6f0051e4e618c1eff231a6bed8e6ee.zip
Merge pull request #1011 from obscuren/upgradedb_fix
cmd/geth: delete state db on upgradedb command
-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 {