Fix Block_Hash_Hex

This commit is contained in:
ahmedbodi 2014-01-07 11:20:54 +00:00
parent f640548e0c
commit 9078b66bbd

View File

@ -274,6 +274,7 @@ class TemplateRegistry(object):
block_hash_hex = block_hash_bin[::-1].encode('hex_codec') block_hash_hex = block_hash_bin[::-1].encode('hex_codec')
else: else:
block_hash_hex = hash_bin[::-1].encode('hex_codec') block_hash_hex = hash_bin[::-1].encode('hex_codec')
else: block_hash_hex = hash_bin[::-1].encode('hex_codec')
# 6. Finalize and serialize block object # 6. Finalize and serialize block object
job.finalize(merkle_root_int, extranonce1_bin, extranonce2_bin, int(ntime, 16), int(nonce, 16)) job.finalize(merkle_root_int, extranonce1_bin, extranonce2_bin, int(ntime, 16), int(nonce, 16))