aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-01-12 17:39:50 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2017-01-13 18:55:03 +0100
commitac4a0953060e34ddd8f4bd7aa28c719d8ed2c068 (patch)
tree33e09113685baac158deb2065f552d8b21241289 /contrib
parent5754e0341b7c033d4caf99534aca47e9981bd7ed (diff)
Remove unused Python variables
Diffstat (limited to 'contrib')
-rw-r--r--contrib/testgen/base58.py1
-rwxr-xr-xcontrib/testgen/gen_base58_test_vectors.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/contrib/testgen/base58.py b/contrib/testgen/base58.py
index bb0aeaff05..0d09692b36 100644
--- a/contrib/testgen/base58.py
+++ b/contrib/testgen/base58.py
@@ -84,7 +84,6 @@ def b58decode_chk(v):
result = b58decode(v)
if result is None:
return None
- h3 = checksum(result[:-4])
if result[-4:] == checksum(result[:-4]):
return result[:-4]
else:
diff --git a/contrib/testgen/gen_base58_test_vectors.py b/contrib/testgen/gen_base58_test_vectors.py
index 7e475b7a36..ac0701e6be 100755
--- a/contrib/testgen/gen_base58_test_vectors.py
+++ b/contrib/testgen/gen_base58_test_vectors.py
@@ -45,7 +45,6 @@ def is_valid(v):
result = b58decode_chk(v)
if result is None:
return False
- valid = False
for template in templates:
prefix = str(bytearray(template[0]))
suffix = str(bytearray(template[2]))