close memdb in ./cmd/evm

This commit is contained in:
alex.sharov 2023-03-30 12:21:22 +07:00
parent 2161c5ed8c
commit d9f8cc25d3

View File

@ -149,6 +149,7 @@ func runCmd(ctx *cli.Context) error {
debugLogger = logger.NewStructLogger(logconfig)
}
db := memdb.New("")
defer db.Close()
if ctx.String(GenesisFlag.Name) != "" {
gen := readGenesis(ctx.String(GenesisFlag.Name))
core.MustCommitGenesis(gen, db, "")