mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Integrate Decred with wallet encryption.
dcrwallet requires the password to be entered at the first startup when encrypted. basicswap-run with --startonlycoin=decred and the WALLET_ENCRYPTION_PWD environment var set can be used for the initial sync.
This commit is contained in:
@@ -6861,6 +6861,12 @@ class BasicSwap(BaseApp):
|
||||
self.ci(coin).setAnonTxRingSize(new_anon_tx_ring_size)
|
||||
break
|
||||
|
||||
if 'wallet_pwd' in data:
|
||||
new_wallet_pwd = data['wallet_pwd']
|
||||
if settings_cc.get('wallet_pwd', '') != new_wallet_pwd:
|
||||
settings_changed = True
|
||||
settings_cc['wallet_pwd'] = new_wallet_pwd
|
||||
|
||||
if settings_changed:
|
||||
settings_path = os.path.join(self.data_dir, cfg.CONFIG_FILENAME)
|
||||
settings_path_new = settings_path + '.new'
|
||||
|
||||
Reference in New Issue
Block a user