From fab56e8c99dff19515f23712e80112a8d184519c Mon Sep 17 00:00:00 2001 From: Devon Bear Date: Thu, 21 Sep 2023 17:33:51 -0400 Subject: [PATCH] ree --- cosmos/config/config.go | 3 +++ e2e/hive/clients/polard/config/app.toml | 2 +- e2e/precompile/polard/config/app.toml | 2 +- e2e/testapp/docker/local/config/app.toml | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cosmos/config/config.go b/cosmos/config/config.go index 94d6c0cfd..3128a5bad 100644 --- a/cosmos/config/config.go +++ b/cosmos/config/config.go @@ -123,6 +123,9 @@ func ReadConfigFromAppOpts(opts servertypes.AppOptions) (*Config, error) { if conf.Node.DataDir, err = getString(flagDataDir); err != nil { return nil, handleError(err) } + if conf.Node.DataDir == "" { + conf.Node.DataDir = node.DefaultDataDir() + } if conf.Node.KeyStoreDir, err = getString(flagKeyStoreDir); err != nil { return nil, handleError(err) } diff --git a/e2e/hive/clients/polard/config/app.toml b/e2e/hive/clients/polard/config/app.toml index 691357918..f48cfbbdc 100644 --- a/e2e/hive/clients/polard/config/app.toml +++ b/e2e/hive/clients/polard/config/app.toml @@ -278,7 +278,7 @@ user-ident = "" version = "" # Directory for storing node data -data-dir = "/Users/dev/Library/Ethereum" +data-dir = "" # Directory for storing node keys key-store-dir = "" diff --git a/e2e/precompile/polard/config/app.toml b/e2e/precompile/polard/config/app.toml index 691357918..f48cfbbdc 100644 --- a/e2e/precompile/polard/config/app.toml +++ b/e2e/precompile/polard/config/app.toml @@ -278,7 +278,7 @@ user-ident = "" version = "" # Directory for storing node data -data-dir = "/Users/dev/Library/Ethereum" +data-dir = "" # Directory for storing node keys key-store-dir = "" diff --git a/e2e/testapp/docker/local/config/app.toml b/e2e/testapp/docker/local/config/app.toml index fec2b5d1c..a9cc4f72e 100644 --- a/e2e/testapp/docker/local/config/app.toml +++ b/e2e/testapp/docker/local/config/app.toml @@ -277,7 +277,7 @@ user-ident = "" version = "" # Directory for storing node data -data-dir = "/Users/dev/Library/Ethereum" +data-dir = "" # Directory for storing node keys key-store-dir = ""