chore: Drop unused code in linearize-data.py

This commit is contained in:
UdjinM6 2023-07-05 21:28:53 +03:00
parent 591da75630
commit 73f28b62a4

View File

@ -48,17 +48,7 @@ def wordreverse(in_buf):
return b''.join(out_words) return b''.join(out_words)
def calc_hdr_hash(blk_hdr): def calc_hdr_hash(blk_hdr):
#hash1 = hashlib.sha256() return dash_hash.getPoWHash(blk_hdr)
#hash1.update(blk_hdr)
#hash1_o = hash1.digest()
#hash2 = hashlib.sha256()
#hash2.update(hash1_o)
#hash2_o = hash2.digest()
#return hash2_o
pow_hash = dash_hash.getPoWHash(blk_hdr)
return pow_hash
def calc_hash_str(blk_hdr): def calc_hash_str(blk_hdr):
hash = calc_hdr_hash(blk_hdr) hash = calc_hdr_hash(blk_hdr)