Merge pull request #1011 from obscuren/upgradedb_fix
cmd/geth: delete state db on upgradedb command
This commit is contained in:
		
						commit
						426c70ac0b
					
				| @ -574,6 +574,7 @@ func upgradeDb(ctx *cli.Context) { | |||||||
| 	ethereum.ExtraDb().Close() | 	ethereum.ExtraDb().Close() | ||||||
| 
 | 
 | ||||||
| 	os.RemoveAll(filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), "blockchain")) | 	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) | 	ethereum, err = eth.New(cfg) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user