From e8d685c8faf28596ee4130a355bf0de53769a7ca Mon Sep 17 00:00:00 2001 From: theed Date: Tue, 9 Apr 2024 10:23:14 +0300 Subject: [PATCH] fix comment for global home root --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 2dd2683c44..6c7495e06b 100644 --- a/config.go +++ b/config.go @@ -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)