electrum

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

commit 4694717dc0651f5aedfdb0d0d395a586242f4ab1
parent 0df24d9321eb1c9ecc38685bdb70c0aa1d3fc9cb
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 11 Oct 2017 14:13:53 +0200

Merge pull request #3015 from SomberNight/typo_p2wpkh_importedwallet

fix: Imported_Wallet cannot spend from p2wpkh or p2wpkh-p2sh
Diffstat:
Mlib/wallet.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1472,7 +1472,7 @@ class Imported_Wallet(Abstract_Wallet): txin['x_pubkeys'] = [x_pubkey] txin['signatures'] = [None] return - if txin['type'] in ['p2pkh', 'p2wkh', 'p2wkh-p2sh']: + if txin['type'] in ['p2pkh', 'p2wpkh', 'p2wpkh-p2sh']: pubkey = self.addresses[address]['pubkey'] txin['num_sig'] = 1 txin['x_pubkeys'] = [pubkey]