From 18f8f6cb5ef0c8859d113085553d58f00f261a4a Mon Sep 17 00:00:00 2001 From: mhannigan Date: Fri, 25 May 2018 09:52:35 -0400 Subject: [PATCH] Display hashes correctly Remove hex_codec to display hashes correctly. --- genesis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/genesis.py b/genesis.py index 1eacc15..80e94c1 100644 --- a/genesis.py +++ b/genesis.py @@ -186,7 +186,7 @@ def calculate_hashrate(nonce, last_updated): def print_block_info(options, hash_merkle_root): print "algorithm: " + (options.algorithm) - print "merkle hash: " + hash_merkle_root[::-1].encode('hex_codec') + print "merkle hash: " + hash_merkle_root print "pszTimestamp: " + options.timestamp print "pubkey: " + options.pubkey print "time: " + str(options.time) @@ -196,7 +196,7 @@ def print_block_info(options, hash_merkle_root): def announce_found_genesis(genesis_hash, nonce): print "genesis hash found!" print "nonce: " + str(nonce) - print "genesis hash: " + genesis_hash.encode('hex_codec') + print "genesis hash: " + genesis_hash # GOGOGO!