Fix getProofOfFunds failure.

This commit is contained in:
tecnovert 2022-01-03 12:05:44 +02:00
parent 1658a6fc54
commit 76c7a281bb
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93

View File

@ -1531,6 +1531,8 @@ class BasicSwap(BaseApp):
unspent_addr = dict()
unspent = self.callcoinrpc(coin_type, 'listunspent')
for u in unspent:
if u['spendable'] is not True:
continue
unspent_addr[u['address']] = unspent_addr.get(u['address'], 0) + ci.make_int(u['amount'], r=1)
sign_for_addr = None