mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-22 11:39:34 +00:00
Use subaddr_indices_all with sweep_all.
This commit is contained in:
parent
56378d168b
commit
f307332409
2 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue