From f93fae66965bc0b3efd2eb6b3724bb8186f7faee Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Thu, 14 Nov 2024 04:51:54 +0000 Subject: [PATCH] prepare: disablecoin/addcoin for manage_wallet_daemon --- basicswap/bin/prepare.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/basicswap/bin/prepare.py b/basicswap/bin/prepare.py index 644a4a3..e285e7d 100644 --- a/basicswap/bin/prepare.py +++ b/basicswap/bin/prepare.py @@ -2060,6 +2060,8 @@ def main(): exitWithError(f'{disable_coin} is already disabled') coin_settings['connection_type'] = 'none' coin_settings['manage_daemon'] = False + if 'manage_wallet_daemon' in coin_settings: + coin_settings['manage_wallet_daemon'] = False with open(config_path, 'w') as fp: json.dump(settings, fp, indent=4) @@ -2086,6 +2088,8 @@ def main(): logger.info('Enabling coin: %s', add_coin) coin_settings['connection_type'] = 'rpc' coin_settings['manage_daemon'] = True + if 'manage_wallet_daemon' in coin_settings: + coin_settings['manage_wallet_daemon'] = True with open(config_path, 'w') as fp: json.dump(settings, fp, indent=4) logger.info('Done.')