Skip to content

Commit 98818cc

Browse files
Merge pull request #327 from ava-labs/revert-db-default
revert DB update + bump node version
2 parents 981c1a1 + e8976e0 commit 98818cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

main/params.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,10 @@ func setNodeConfig(v *viper.Viper) error {
316316

317317
// DB:
318318
Config.DBEnabled = v.GetBool(dbEnabledKey)
319-
Config.DBPath = v.GetString(dbPathKey)
320-
Config.DBPath = os.ExpandEnv(Config.DBPath) // parse any env variables
319+
Config.DBPath = os.ExpandEnv(v.GetString(dbPathKey))
320+
if Config.DBPath == defaultString {
321+
Config.DBPath = defaultDbDir
322+
}
321323
Config.DBPath = path.Join(Config.DBPath, constants.NetworkName(Config.NetworkID), dbVersion)
322324

323325
// IP Configuration

node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767
genesisHashKey = []byte("genesisID")
6868

6969
// Version is the version of this code
70-
Version = version.NewDefaultVersion(constants.PlatformName, 1, 2, 1)
70+
Version = version.NewDefaultVersion(constants.PlatformName, 1, 2, 2)
7171
versionParser = version.NewDefaultParser()
7272
beaconConnectionTimeout = 1 * time.Minute
7373
)

0 commit comments

Comments
 (0)