Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Oct 17, 2024
1 parent 0c839a8 commit 96e4580
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ import (

"github.com/c2h5oh/datasize"
"github.com/erigontech/erigon-lib/common/dbg"
"github.com/erigontech/erigon/params"
"golang.org/x/sync/semaphore"

"github.com/erigontech/erigon-lib/common/datadir"

"github.com/erigontech/erigon/cmd/utils"
"github.com/erigontech/erigon/node/nodecfg"
"github.com/erigontech/erigon/params"
"github.com/erigontech/erigon/turbo/debug"

"github.com/gofrs/flock"
Expand Down Expand Up @@ -402,12 +402,11 @@ func OpenDatabase(ctx context.Context, config *nodecfg.Config, label kv.Label, n
return nil, err
}
}
}

if err := db.Update(context.Background(), func(tx kv.RwTx) (err error) {
return params.SetErigonVersion(tx, params.VersionKeyCreated)
}); err != nil {
return nil, err
if err := db.Update(context.Background(), func(tx kv.RwTx) (err error) {
return params.SetErigonVersion(tx, params.VersionKeyCreated)
}); err != nil {
return nil, err
}
}

return db, nil
Expand Down

0 comments on commit 96e4580

Please sign in to comment.