From 5edccbe2d144906fc5de66fb32e905c904250851 Mon Sep 17 00:00:00 2001 From: crosschainer Date: Tue, 2 Apr 2024 08:58:54 +0000 Subject: [PATCH] i forgot --- src/xian/tools/configure.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xian/tools/configure.py b/src/xian/tools/configure.py index f44a66d1..7662eb61 100644 --- a/src/xian/tools/configure.py +++ b/src/xian/tools/configure.py @@ -105,6 +105,10 @@ def main(self): file_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'priv_validator_key.json') target_path = os.path.join(os.path.expanduser('~'), '.cometbft', 'config', 'priv_validator_key.json') os.system(f'cp {file_path} {target_path}') + # Remove node_key.json file + path = os.path.join(os.path.expanduser('~'), '.cometbft', 'config', 'node_key.json') + if os.path.exists(path): + os.system(f'rm {path}') with open(self.config_path, 'w') as f: f.write(toml.dumps(config))