Skip to content

Commit

Permalink
fix db dir bug
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed May 13, 2024
1 parent 2393bd8 commit f076eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/ethconsensusconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func CreateConsensusEngine(ctx context.Context, nodeConfig *nodecfg.Config, chai
var err error
var db kv.RwDB

if consensusCfg.DBPath == "" {
if consensusCfg.DBPath != "" {
if filepath.Base(consensusCfg.DBPath) == "parlia" {
nodeConfig.Dirs.DataDir = filepath.Dir(consensusCfg.DBPath)
} else {
Expand Down

0 comments on commit f076eab

Please sign in to comment.