Browse Source

fix is_used for unmatured tx

283
ThomasV 10 years ago
parent
commit
d09a10e0f7
  1. 2
      lib/wallet.py

2
lib/wallet.py

@ -1141,7 +1141,7 @@ class Abstract_Wallet(object):
def is_used(self, address):
h = self.history.get(address,[])
c, u, x = self.get_addr_balance(address)
return len(h), len(h) > 0 and c == -u
return len(h), len(h) > 0 and c + u + x == 0
def is_empty(self, address):
c, u, x = self.get_addr_balance(address)

Loading…
Cancel
Save