mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
Fix LTC getUnspentsByAddr() returning MWEB UTXOs.
This commit is contained in:
@@ -1376,7 +1376,9 @@ class BTCInterface(CoinInterface):
|
||||
unspent_addr = dict()
|
||||
unspent = self.rpc_wallet('listunspent')
|
||||
for u in unspent:
|
||||
if u['spendable'] is not True:
|
||||
if u.get('spendable', False) is False:
|
||||
continue
|
||||
if u.get('solveable', False) is False:
|
||||
continue
|
||||
if 'address' not in u:
|
||||
continue
|
||||
|
||||
@@ -277,8 +277,6 @@ class FIROInterface(BTCInterface):
|
||||
break
|
||||
utxos_hash = hasher.digest()
|
||||
|
||||
self._log.debug('sign_for_addr %s', sign_for_addr)
|
||||
|
||||
if self.using_segwit(): # TODO: Use isSegwitAddress when scantxoutset can use combo
|
||||
# 'Address does not refer to key' for non p2pkh
|
||||
pkh = self.decodeAddress(sign_for_addr)
|
||||
|
||||
@@ -216,8 +216,6 @@ class NAVInterface(BTCInterface):
|
||||
break
|
||||
utxos_hash = hasher.digest()
|
||||
|
||||
self._log.debug('sign_for_addr %s', sign_for_addr)
|
||||
|
||||
if self.using_segwit(): # TODO: Use isSegwitAddress when scantxoutset can use combo
|
||||
# 'Address does not refer to key' for non p2pkh
|
||||
addr_info = self.rpc('validateaddress', [addr, ])
|
||||
|
||||
Reference in New Issue
Block a user