electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 0b674eb35de78d81877276654cc877aab625df9e
parent 6bb4a554e39db25799a8d113336acb8e3638047a
Author: ThomasV <thomasv@gitorious>
Date:   Mon,  2 Feb 2015 16:06:29 +0100

fix can_sign: detect if OldWallet is used

Diffstat:
Mlib/wallet.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1048,9 +1048,11 @@ 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 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': + if not isinstance(self, OldWallet): return False xpub, sequence = OldAccount.parse_xpubkey(x_pubkey) return xpub == self.get_master_public_key() elif x_pubkey[0:2] == 'fd':