aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/util.py
diff options
context:
space:
mode:
authorElichai Turkel <elichai.turkel@gmail.com>2019-08-13 14:55:24 -0400
committerElichai Turkel <elichai.turkel@gmail.com>2019-08-13 15:39:46 -0400
commitafc0966d725aeeb8842dc264bd48f0e9c41f6a34 (patch)
treef59d0591135babb93b321c8d9e892b61db43130f /test/functional/test_framework/util.py
parentb799ebcc17ea914b6e50f97f008f498ca31e0f36 (diff)
Moved and renamed hash256 from util.py to zmq_interface.py
Diffstat (limited to 'test/functional/test_framework/util.py')
-rw-r--r--test/functional/test_framework/util.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py
index 8730157c74..7beddc6407 100644
--- a/test/functional/test_framework/util.py
+++ b/test/functional/test_framework/util.py
@@ -7,7 +7,6 @@
from base64 import b64encode
from binascii import unhexlify
from decimal import Decimal, ROUND_DOWN
-import hashlib
import inspect
import json
import logging
@@ -183,12 +182,6 @@ def check_json_precision():
def count_bytes(hex_string):
return len(bytearray.fromhex(hex_string))
-def hash256(byte_str):
- sha256 = hashlib.sha256()
- sha256.update(byte_str)
- sha256d = hashlib.sha256()
- sha256d.update(sha256.digest())
- return sha256d.digest()[::-1]
def hex_str_to_bytes(hex_str):
return unhexlify(hex_str.encode('ascii'))