mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
prepare: disablecoin/addcoin for manage_wallet_daemon
This commit is contained in:
@@ -2060,6 +2060,8 @@ def main():
|
|||||||
exitWithError(f'{disable_coin} is already disabled')
|
exitWithError(f'{disable_coin} is already disabled')
|
||||||
coin_settings['connection_type'] = 'none'
|
coin_settings['connection_type'] = 'none'
|
||||||
coin_settings['manage_daemon'] = False
|
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:
|
with open(config_path, 'w') as fp:
|
||||||
json.dump(settings, fp, indent=4)
|
json.dump(settings, fp, indent=4)
|
||||||
@@ -2086,6 +2088,8 @@ def main():
|
|||||||
logger.info('Enabling coin: %s', add_coin)
|
logger.info('Enabling coin: %s', add_coin)
|
||||||
coin_settings['connection_type'] = 'rpc'
|
coin_settings['connection_type'] = 'rpc'
|
||||||
coin_settings['manage_daemon'] = True
|
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:
|
with open(config_path, 'w') as fp:
|
||||||
json.dump(settings, fp, indent=4)
|
json.dump(settings, fp, indent=4)
|
||||||
logger.info('Done.')
|
logger.info('Done.')
|
||||||
|
|||||||
Reference in New Issue
Block a user