URI: 
       tMerge pull request #3015 from SomberNight/typo_p2wpkh_importedwallet - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 4694717dc0651f5aedfdb0d0d395a586242f4ab1
   DIR parent 0df24d9321eb1c9ecc38685bdb70c0aa1d3fc9cb
  HTML 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:
         M lib/wallet.py                       |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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]