Merge pull request #3015 from SomberNight/typo_p2wpkh_importedwallet
fix: Imported_Wallet cannot spend from p2wpkh or p2wpkh-p2sh
This commit is contained in:
commit
4694717dc0
|
@ -1472,7 +1472,7 @@ class Imported_Wallet(Abstract_Wallet):
|
||||||
txin['x_pubkeys'] = [x_pubkey]
|
txin['x_pubkeys'] = [x_pubkey]
|
||||||
txin['signatures'] = [None]
|
txin['signatures'] = [None]
|
||||||
return
|
return
|
||||||
if txin['type'] in ['p2pkh', 'p2wkh', 'p2wkh-p2sh']:
|
if txin['type'] in ['p2pkh', 'p2wpkh', 'p2wpkh-p2sh']:
|
||||||
pubkey = self.addresses[address]['pubkey']
|
pubkey = self.addresses[address]['pubkey']
|
||||||
txin['num_sig'] = 1
|
txin['num_sig'] = 1
|
||||||
txin['x_pubkeys'] = [pubkey]
|
txin['x_pubkeys'] = [pubkey]
|
||||||
|
|
Loading…
Reference in New Issue