You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
In the initialization procedure for pallet-babe, we compute randomness using make_bytes for primary slots and assign an Initialized value based on that.
Secondary-VRF slot assignments also provide some randomness that we should assign to an ephemeral storage value that other modules can access. It shouldn't go in the Initialized value because that is used for the epoch randomness calculation, which shouldn't be polluted by secondary slots.
Implementation:
Add a separate storage var AuthorVrfRandomness which is filled either by Primary or SecondaryVRF slot claims. Add a getter author_vrf_randomness.