From 28ba374f27b81ba143005e285be6f8a986134936 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 16 May 2015 17:43:19 +0200 Subject: [PATCH] cmd/geth: delete state db on upgradedb command --- cmd/geth/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index e9deec61f2..817337e202 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 {