From 8b6efaff2d47b943f24af81477621a5365078b50 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 7 Jan 2017 18:42:51 +0100 Subject: [PATCH] remove regexp test from is_address; non-matching strings will fail anyway --- lib/bitcoin.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/bitcoin.py b/lib/bitcoin.py index 4a72806f0..51dfe27cb 100644 --- a/lib/bitcoin.py +++ b/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: