Skip to content

Commit

Permalink
i forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
crosschainer committed Apr 2, 2024
1 parent c4dd4e4 commit 5edccbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xian/tools/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5edccbe

Please sign in to comment.