use new pow value formats
parent
366295f09c
commit
fa0318802b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue