tfix wallet.can_sign: use isinstance with BIP32 class - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2f7b8ce86490729ba3d158f311f8245009d8beab DIR parent f52760ef4e5112d3e9d60b5223ad1971da073a81 HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 3 Feb 2015 13:14:35 +0100 fix wallet.can_sign: use isinstance with BIP32 class Diffstat: M lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1048,7 +1048,7 @@ class Abstract_Wallet(object): addr = bitcoin.public_key_to_bc_address(x_pubkey.decode('hex')) return self.is_mine(addr) elif x_pubkey[0:2] == 'ff': - if isinstance(self, OldWallet): return False + if not isinstance(self, BIP32_Wallet): return False xpub, sequence = BIP32_Account.parse_xpubkey(x_pubkey) return xpub in [ self.master_public_keys[k] for k in self.master_private_keys.keys() ] elif x_pubkey[0:2] == 'fe':