Browse Source

wallet: fix #5748

master
SomberNight 6 years ago
parent
commit
fef1ddd416
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/wallet.py

2
electrum/wallet.py

@ -422,6 +422,8 @@ class Abstract_Wallet(AddressSynchronizer):
if txin_type == 'p2wpkh-p2sh':
pubkey = self.get_public_key(address)
return bitcoin.p2wpkh_nested_script(pubkey)
if txin_type == 'address':
return None
raise UnknownTxinType(f'unexpected txin_type {txin_type}')
def get_witness_script(self, address: str) -> Optional[str]:

Loading…
Cancel
Save