removed invalid filename characters

This commit is contained in:
Bas van Kervel 2015-05-13 12:38:12 +02:00
parent 6dec90464d
commit e30e9fe979

View File

@ -563,7 +563,7 @@ func upgradeDb(ctx *cli.Context) {
bcVersion = core.BlockChainVersion bcVersion = core.BlockChainVersion
} }
filename := fmt.Sprintf("blockchain_%d_%s.chain", bcVersion, time.Now().Format("2006-01-02_15:04:05")) filename := fmt.Sprintf("blockchain_%d_%s.chain", bcVersion, time.Now().Format("20060102_150405"))
exportFile := filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), filename) exportFile := filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), filename)
err = utils.ExportChain(ethereum.ChainManager(), exportFile) err = utils.ExportChain(ethereum.ChainManager(), exportFile)