Skip to content
Snippets Groups Projects
Commit 4ea7c93e authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

fix py27 unit test

parent 08cd781a
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ class Address(object): ...@@ -172,7 +172,7 @@ class Address(object):
""" """
pkbin = unhexlify(repr(self._pubkey)) pkbin = unhexlify(repr(self._pubkey))
addressbin = ripemd160(hexlify(hashlib.sha256(pkbin).digest())) addressbin = ripemd160(hexlify(hashlib.sha256(pkbin).digest()))
addr = py23_bytes(ctypes.c_uint8(version & 0xFF)) + addressbin addr = py23_bytes(bytearray(ctypes.c_uint8(version & 0xFF))) + addressbin
check = hashlib.sha256(addr).digest() check = hashlib.sha256(addr).digest()
check = hashlib.sha256(check).digest() check = hashlib.sha256(check).digest()
buffer = addr + check[0:4] buffer = addr + check[0:4]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment