Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 4c05f1e

Browse files
committed
update strings formatting to be python3 friendly
1 parent 7519e7c commit 4c05f1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ethereum/blocks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ def check_pow(self, nonce=None, debugmode=False):
339339
mining_output = hashimoto_light(current_full_size, cache, header_hash, nonce)
340340
diff = self.difficulty
341341
if debugmode:
342-
print 'Mining hash: %s' % encode_hex(header_hash)
343-
print 'Seed: %s' % encode_hex(seed)
344-
print 'Mixhash: %s' % encode_hex(mining_output['mix digest'])
345-
print 'Result: %s' % encode_hex(mining_output['result'])
342+
print('Mining hash: {}'.format(encode_hex(header_hash)))
343+
print('Seed: {}'.format(encode_hex(seed)))
344+
print('Mixhash: {}'.format(encode_hex(mining_output['mix digest'])))
345+
print('Result: {}'.format(encode_hex(mining_output['result'])))
346346
if mining_output['mix digest'] != self.mixhash:
347347
return False
348348
return utils.big_endian_to_int(mining_output['result']) <= 2**256 / (diff or 1)

0 commit comments

Comments
 (0)