From 76c7a281bbd0d96e20eb91c82320ba3d5e3e612b Mon Sep 17 00:00:00 2001 From: tecnovert Date: Mon, 3 Jan 2022 12:05:44 +0200 Subject: [PATCH] Fix getProofOfFunds failure. --- basicswap/basicswap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index 06b2758..a14f77f 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -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