From 856dac247cced30292919dd5395cafd7fd049a0f Mon Sep 17 00:00:00 2001 From: jackjack-jj Date: Thu, 28 Mar 2013 19:41:48 +0100 Subject: [PATCH] fix balance problem --- pywallet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pywallet.py b/pywallet.py index 6f9d77f..e54aeec 100755 --- a/pywallet.py +++ b/pywallet.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -pywversion="2.0b8-bt" +pywversion="2.0b9-bt" never_update=False # @@ -2145,7 +2145,7 @@ def read_wallet(json_db, db_env, walletfile, print_wallet, print_wallet_transact for k in json_db['keys']: i+=1 addr = k['addr'] - if include_balance is not None: + if include_balance: # print("%3d/%d %s %s" % (i, nkeys, k["addr"], k["balance"])) k["balance"] = balance(balance_site, k["addr"]) # print(" %s" % (i, nkeys, k["addr"], k["balance"])) @@ -3260,6 +3260,7 @@ if __name__ == '__main__': # print('Bitcoin seems to be running: \n"%s"'%(aread)) # if options.forcerun is None: # exit(0) + global passphrase if options.passphrase: passphrase = options.passphrase