mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
close memdb in ./cmd/evm
This commit is contained in:
parent
2161c5ed8c
commit
d9f8cc25d3
@ -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, "")
|
||||
|
Loading…
Reference in New Issue
Block a user