header fix

This commit is contained in:
Thomas Zarebczan 2018-11-16 15:58:54 -05:00
parent f975244e16
commit e12e31191a

View file

@ -64,7 +64,7 @@ def deserialize_header(s: bytes, height: int) -> dict:
h['timestamp'] = hex_to_int(s[100:104])
h['bits'] = hex_to_int(s[104:108])
h['nonce'] = hex_to_int(s[108:112])
h['block_height'] = height
h['height'] = height
return h
def hash_header(header: dict) -> str: