tremove dead code: get_imported_balance - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4a33cf256bd339e9faca92050fc9b63e482bd5dd DIR parent 09a2254739978f9dce51adf404217c6770cd631e HTML Author: ThomasV <thomasv@gitorious> Date: Sun, 4 May 2014 12:54:35 +0200 remove dead code: get_imported_balance Diffstat: M lib/wallet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -407,6 +407,8 @@ class Abstract_Wallet: for sec in private_keys: pubkey = public_key_from_private_key(sec) keypairs[ pubkey ] = sec + + # this is needed because we don't store imported pubkeys if address in self.imported_keys.keys(): txin['redeemPubkey'] = pubkey t@@ -640,8 +642,6 @@ class Abstract_Wallet: if include_change: o += ac.get_addresses(1) return o - def get_imported_balance(self): - return self.get_balance(self.imported_keys.keys()) def get_account_balance(self, account): return self.get_balance(self.get_account_addresses(account))