1
0

fix is_address (forgot p2sh)

This commit is contained in:
ThomasV
2015-07-02 08:53:17 +02:00
parent c0858f314f
commit 0c37009cdb
3 changed files with 47 additions and 21 deletions

View File

@@ -358,7 +358,7 @@ def is_address(addr):
addrtype, h = bc_address_to_hash_160(addr)
except Exception:
return False
if addrtype != 0:
if addrtype not in [0, 5]:
return False
return addr == hash_160_to_bc_address(h, addrtype)