From 5e72fc707db5b4b7fb1ece2c9afb26653810bf57 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Wed, 28 Mar 2018 13:48:29 +0400 Subject: [PATCH] p2sh_p2wpkh witness_version to None fix --- pybtc/tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pybtc/tools.py b/pybtc/tools.py index 2f89ed3..0b00cf7 100644 --- a/pybtc/tools.py +++ b/pybtc/tools.py @@ -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