Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions blockchain_parser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# modified, propagated, or distributed except according to the terms contained
# in the LICENSE file.

from binascii import hexlify
import hashlib
import struct

Expand All @@ -26,7 +25,7 @@ def double_sha256(data):


def format_hash(hash_):
return str(hexlify(hash_[::-1]).decode("utf-8"))
return hash_[::-1].hex()


def decode_uint32(data):
Expand Down