use new pow value formats

This commit is contained in:
Kevin Froman 2020-09-25 08:09:08 +00:00
parent 366295f09c
commit fa0318802b

View File

@ -125,7 +125,7 @@ class SubprocessPOW:
except KeyboardInterrupt: except KeyboardInterrupt:
break break
# Load nonce into block metadata # Load nonce into block metadata
metadata['pow'] = nonce metadata['c'] = nonce
# Serialize metadata, combine with block data # Serialize metadata, combine with block data
payload = json.dumps(metadata).encode() + b'\n' + data payload = json.dumps(metadata).encode() + b'\n' + data
# Check sha3_256 hash of block, compare to puzzle # Check sha3_256 hash of block, compare to puzzle