Skip to content

Commit

Permalink
fix comment for global home root
Browse files Browse the repository at this point in the history
  • Loading branch information
theedtron committed Apr 9, 2024
1 parent 402e44f commit e8d685c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.go
Expand Up @@ -511,7 +511,8 @@ func loadConfig() (*config, []string, error) {
}
}

//Check if global home path is set
// Check if global home root path is set and reassigns the config, datadir,
// rpc & rpccert paths to the global root
if len(preCfg.GlobalHomeRoot) > 0 && preCfg.GlobalHomeRoot != defaultHomeDir{
defaultHomeDir = preCfg.GlobalHomeRoot
cfg.ConfigFile = filepath.Join(defaultHomeDir, defaultConfigFilename)
Expand Down

0 comments on commit e8d685c

Please sign in to comment.