remove regexp test from is_address; non-matching strings will fail anyway
This commit is contained in:
parent
4d41c36cbb
commit
8b6efaff2d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue