Browse Source

assert address is in wallet (use watch_address if it is not)

283
ThomasV 13 years ago
parent
commit
86e867ae30
  1. 7
      wallet.py

7
wallet.py

@ -609,11 +609,8 @@ class Wallet:
def get_addr_balance(self, addr):
if self.is_mine(addr):
h = self.history.get(addr)
else:
h = self.interface.retrieve_history(addr)
if not h: return 0,0
assert self.is_mine(addr)
h = self.history.get(addr,[])
c = u = 0
for item in h:
v = item['value']

Loading…
Cancel
Save