Use subaddr_indices_all with sweep_all.

master^2
tecnovert 6 months ago
parent 56378d168b
commit f307332409
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
  1. 2
      basicswap/interface/xmr.py
  2. 1
      tests/basicswap/extended/test_xmr_persistent.py

@ -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)

@ -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

Loading…
Cancel
Save