p2sh_p2wpkh witness_version to None fix

This commit is contained in:
4tochka 2018-03-28 13:48:29 +04:00
parent 19c4730939
commit 5e72fc707d

View File

@ -228,6 +228,7 @@ def pub2address(pubkey, testnet = False,
if p2sh_p2wpkh:
assert len(pubkey) == 33
h = hash160(b'\x00\x14' + hash160(pubkey))
witness_version = None
else:
if witness_version is not None:
assert len(pubkey) == 33