feat(client): allow overwritting client.toml (#17513)

This commit is contained in:
Julien Robert
2023-08-29 08:40:13 +00:00
committed by GitHub
parent 6ed81a737c
commit 6601713eb6
16 changed files with 411 additions and 166 deletions
+4 -1
View File
@@ -588,7 +588,10 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) {
if err != nil {
return nil, err
}
srvconfig.WriteConfigFile(filepath.Join(nodeDir, "config", "app.toml"), appCfg)
err = srvconfig.WriteConfigFile(filepath.Join(nodeDir, "config", "app.toml"), appCfg)
if err != nil {
return nil, err
}
clientCtx := client.Context{}.
WithKeyringDir(clientDir).