mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-07 23:53:11 +00:00
Add slot contribution to nonce (#67)
This commit is contained in:
parent
0c447881ca
commit
6f05392693
@ -256,6 +256,7 @@ class LedgerState:
|
||||
h.update("epoch-nonce".encode(encoding="utf-8"))
|
||||
h.update(self.nonce)
|
||||
h.update(block.leader_proof.nullifier)
|
||||
h.update(block.slot.absolute_slot.to_bytes(8, byteorder="big"))
|
||||
|
||||
self.nonce = h.digest()
|
||||
self.block = block.id()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user