mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-18 16:44:34 +00:00
prepare: disablecoin/addcoin for manage_wallet_daemon
This commit is contained in:
parent
373525b364
commit
f93fae6696
1 changed files with 4 additions and 0 deletions
|
@ -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.')
|
||||
|
|
Loading…
Reference in a new issue