1
0

submarine_swaps: wallet.get_unused_address -> get_receiving_address

This commit is contained in:
SomberNight
2020-06-18 17:11:14 +02:00
parent eb910ba14f
commit 5f2d347d81
2 changed files with 12 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ class SwapManager(Logger):
if amount_sat < dust_threshold():
self.logger.info('utxo value below dust threshold')
continue
address = self.wallet.get_unused_address()
address = self.wallet.get_receiving_address()
preimage = swap.preimage if swap.is_reverse else 0
tx = create_claim_tx(txin, swap.redeem_script, preimage, swap.privkey, address, amount_sat, swap.locktime)
await self.network.broadcast_transaction(tx)