commit 6e9b2a4459a108d438a917241c97f315544644c9
parent 18182998b3d5f8cc738da9ffe912ea12ceab0c34
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 16 Sep 2017 10:46:37 +0200
do not send coins to witness scripts with non-zero version
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bitcoin.py b/lib/bitcoin.py
@@ -506,7 +506,7 @@ def address_from_private_key(sec):
def is_segwit_address(addr):
witver, witprog = segwit_addr.decode(SEGWIT_HRP, addr)
- return witprog is not None
+ return witver == 0
def is_b58_address(addr):
try: