Use subaddr_indices_all with sweep_all.

This commit is contained in:
tecnovert 2024-06-19 23:11:41 +02:00
parent 56378d168b
commit f307332409
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
2 changed files with 2 additions and 1 deletions

View file

@ -481,7 +481,7 @@ class XMRInterface(CoinInterface):
raise ValueError('Balance must be fully confirmed to use sweep all.')
self._log.info('{} {} sweep_all.'.format(self.ticker_str(), 'estimate fee' if estimate_fee else 'withdraw'))
self._log.debug('{} balance: {}'.format(self.ticker_str(), balance['balance']))
params = {'address': addr_to, 'do_not_relay': estimate_fee}
params = {'address': addr_to, 'do_not_relay': estimate_fee, 'subaddr_indices_all': True}
if self._fee_priority > 0:
params['priority'] = self._fee_priority
rv = self.rpc_wallet('sweep_all', params)

View file

@ -169,6 +169,7 @@ class Test(unittest.TestCase):
cls.update_thread_dcr = None
cls.processes = []
cls.btc_addr = None
cls.ltc_addr = None
cls.xmr_addr = None
cls.dcr_addr = 'SsYbXyjkKAEXXcGdFgr4u4bo4L8RkCxwQpH'
cls.dcr_acc = None