From ec7d8a37fd99a8ef2f24dd079f7a53effaabe081 Mon Sep 17 00:00:00 2001 From: Ramiro Carlucho Date: Wed, 15 Sep 2021 05:27:37 -0300 Subject: [PATCH] fix: homedir consistency (#561) * fix export homedir * Changelog updated Co-authored-by: Hanchon --- CHANGELOG.md | 1 + server/util.go | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d172241..28269e41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (encoding) [tharsis#478](https://github.com/tharsis/ethermint/pull/478) Register `Evidence` to amino codec. * (rpc) [tharsis#478](https://github.com/tharsis/ethermint/pull/481) Getting the node configuration when calling the `miner` rpc methods. +* (cli) [tharsis#561](https://github.com/tharsis/ethermint/pull/561) `Export` and `Start` commands now use the same home directory. ### Improvements diff --git a/server/util.go b/server/util.go index b45456c9..20010f33 100644 --- a/server/util.go +++ b/server/util.go @@ -14,8 +14,6 @@ import ( tmlog "github.com/tendermint/tendermint/libs/log" rpcclient "github.com/tendermint/tendermint/rpc/jsonrpc/client" - - "github.com/tharsis/ethermint/app" ) // add server commands @@ -39,7 +37,7 @@ func AddCommands(rootCmd *cobra.Command, defaultNodeHome string, appCreator type startCmd, sdkserver.UnsafeResetAllCmd(), tendermintCmd, - sdkserver.ExportCmd(appExport, app.DefaultNodeHome), + sdkserver.ExportCmd(appExport, defaultNodeHome), version.NewVersionCommand(), ) }