remove regexp test from is_address; non-matching strings will fail anyway

This commit is contained in:
ThomasV 2017-01-07 18:42:51 +01:00
parent 4d41c36cbb
commit 8b6efaff2d
1 changed files with 0 additions and 3 deletions

View File

@ -399,9 +399,6 @@ def is_valid(addr):
def is_address(addr):
ADDRESS_RE = re.compile('[1-9A-HJ-NP-Za-km-z]{26,}\\Z')
if not ADDRESS_RE.match(addr):
return False
try:
addrtype, h = bc_address_to_hash_160(addr)
except Exception: