Skip to content

Commit

Permalink
fix db path location
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Aug 21, 2024
1 parent 9fd2634 commit 1ed0bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/operator/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ var StartNodeCmd = &cobra.Command{
if err != nil {
logger.Fatal("could not setup network", zap.Error(err))
}
cfg.DBOptions.Path = "./data/db-stage-debug-210824"
cfg.DBOptions.Ctx = cmd.Context()
db, err := setupDB(logger, networkConfig.Beacon.GetNetwork())
if err != nil {
Expand Down Expand Up @@ -493,7 +494,6 @@ func setupDB(logger *zap.Logger, eth2Network beaconprotocol.Network) (*kv.Badger
return errors.Wrap(err, "failed to reopen db")
}

cfg.DBOptions.Path = "./data/db-stage-debug-210824"
migrationOpts := migrations.Options{
Db: db,
DbPath: cfg.DBOptions.Path,
Expand Down

0 comments on commit 1ed0bd8

Please sign in to comment.