-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
Live upgrade from primary-only should not be possible but live upgrade from secondary to secondary-VRF should, right? This is the purpose of the check |
Also, @burdges should we be including these VRF outputs in the epoch randomness? |
No. We'll only provide "fast" randomness to A&V and to parachains using this. Primary blocks can freely choose their ancestors from among the recent secondary blocks, so including the secondary randomness would only increase the primary block producers influence of over the randomness beacon. Fewer choices is better. :) |
It does not yet in this PR. The consensus engine checks |
Attempted support for live upgrades of BABE engine #5514 |
Would love if I can get some reviews on #5514 first, and then I can rebase this PR based on that. |
…rate into sp-epoch-config
Co-Authored-By: André Silva <[email protected]>
…rate into sp-epoch-config
Tested syncing Kusama for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, great work as usual :) could you update the polkadot companion PR? once it's green we can merge this and #5514.
* Companion PR for paritytech#5501 * Bump runtime versions * add MaxRegistrars config * Pull substrate master in PR-5501 * Attempt to fix pin commit again * update to substrate master Co-authored-by: Alexander Popiak <[email protected]> Co-authored-by: André Silva <[email protected]>
This enables secondary blocks (aura-block) with VRF in BABE. cc @burdges
Currently, secondary blocks in BABE only has slot number and authority index. This adds an additional secondary block type, which also contains an VRF. The VRF is not used in beacon randomness, but is available and may be useful for parachains.
It does not yet support live upgrade. This is due to
BabeConfiguration
currently only fetched from genesis block. Should be possible to lift the restriction in the future.polkadot companion: paritytech/polkadot#1012