mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +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)
|
debugLogger = logger.NewStructLogger(logconfig)
|
||||||
}
|
}
|
||||||
db := memdb.New("")
|
db := memdb.New("")
|
||||||
|
defer db.Close()
|
||||||
if ctx.String(GenesisFlag.Name) != "" {
|
if ctx.String(GenesisFlag.Name) != "" {
|
||||||
gen := readGenesis(ctx.String(GenesisFlag.Name))
|
gen := readGenesis(ctx.String(GenesisFlag.Name))
|
||||||
core.MustCommitGenesis(gen, db, "")
|
core.MustCommitGenesis(gen, db, "")
|
||||||
|
Loading…
Reference in New Issue
Block a user