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