returnFalse,"The last %d addresses in your list have never been used. You should use them first, or increase the allowed gap size in your preferences. "%self.gap_limit
defget_addr_balance(self,addr):
h=self.history.get(addr)
ifaddrinself.addresses:
h=self.history.get(addr)
else:
h=self.interface.retrieve_history(addr)
ifnoth:return0,0
c=u=0
foriteminh:
@ -890,7 +893,8 @@ if __name__ == '__main__':
print"known commands:",', '.join(known_commands)
print"help <command> shows the help on a specific command"
elifcmd2=='balance':
print"display the balance of your wallet"
print"Display the balance of your wallet or a specific address. The address does not have to be a owned address (you know the private key)."