1
0

wallet: change meaning of is_used

This commit is contained in:
SomberNight
2018-08-03 15:23:39 +02:00
parent 6192bfce46
commit cf14d7b346
3 changed files with 8 additions and 11 deletions

View File

@@ -757,10 +757,7 @@ class AddressSynchronizer(PrintError):
def is_used(self, address):
h = self.history.get(address,[])
if len(h) == 0:
return False
c, u, x = self.get_addr_balance(address)
return c + u + x == 0
return len(h) != 0
def is_empty(self, address):
c, u, x = self.get_addr_balance(address)