mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix is_used for unmatured tx
This commit is contained in:
parent
99c50aa31f
commit
d09a10e0f7
1 changed files with 1 additions and 1 deletions
|
@ -1141,7 +1141,7 @@ class Abstract_Wallet(object):
|
||||||
def is_used(self, address):
|
def is_used(self, address):
|
||||||
h = self.history.get(address,[])
|
h = self.history.get(address,[])
|
||||||
c, u, x = self.get_addr_balance(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):
|
def is_empty(self, address):
|
||||||
c, u, x = self.get_addr_balance(address)
|
c, u, x = self.get_addr_balance(address)
|
||||||
|
|
Loading…
Add table
Reference in a new issue