Fix for b58 address check

This commit is contained in:
Chris Sulmone 2018-01-14 23:51:20 -06:00
parent 5ff77230c7
commit 1efbf83241
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ def is_b58_address(addr):
addrtype, h = b58_address_to_hash160(addr)
except Exception as e:
return False
if addrtype not in NetworkConstants.ADDRTYPE_P2PKH + NetworkConstants.ADDRTYPE_P2SH:
if addrtype not in [NetworkConstants.ADDRTYPE_P2PKH, NetworkConstants.ADDRTYPE_P2SH]:
return False
return addr == hash160_to_b58_address(h, addrtype)