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("epoch-nonce".encode(encoding="utf-8"))
|
||||||
h.update(self.nonce)
|
h.update(self.nonce)
|
||||||
h.update(block.leader_proof.nullifier)
|
h.update(block.leader_proof.nullifier)
|
||||||
|
h.update(block.slot.absolute_slot.to_bytes(8, byteorder="big"))
|
||||||
|
|
||||||
self.nonce = h.digest()
|
self.nonce = h.digest()
|
||||||
self.block = block.id()
|
self.block = block.id()
|
||||||
|
|
Loading…
Reference in New Issue