utxo release applies to all accounts in wallet

This commit is contained in:
Lex Berezhny 2019-10-13 21:46:55 -04:00
parent e2b92c99ef
commit 3d82becadc

View file

@ -3394,7 +3394,11 @@ class Daemon(metaclass=JSONRPCServerType):
None None
""" """
wallet = self.wallet_manager.get_wallet_or_default(wallet_id) wallet = self.wallet_manager.get_wallet_or_default(wallet_id)
return wallet.get_account_or_default(account_id).release_all_outputs() if account_id is not None:
wallet.get_account_or_error(account_id).release_all_outputs()
else:
for account in wallet.accounts:
account.release_all_outputs()
BLOB_DOC = """ BLOB_DOC = """
Blob management. Blob management.