Browse Source

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

283
ThomasV 8 years ago
parent
commit
8b6efaff2d
  1. 3
      lib/bitcoin.py

3
lib/bitcoin.py

@ -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…
Cancel
Save