Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/babe: implement secondary slot block production #2216

Closed
noot opened this issue Jan 20, 2022 · 0 comments · Fixed by #2260
Closed

lib/babe: implement secondary slot block production #2216

noot opened this issue Jan 20, 2022 · 0 comments · Fixed by #2260
Assignees

Comments

@noot
Copy link
Contributor

noot commented Jan 20, 2022

Task summary

  • gossamer already has secondary slot verification, we can use this to implement secondary slot production
  • if the ConfigData for an epoch has secondary = 1 or 2 we should enable secondary slot production
  • this can be done by calling getSecondarySlotAuthor for each slot in the epoch and determining if we can author a block in that slot (similar to the existing lottery)
  • we will also need to update pre-runtime digest when producing a block in secondary to be of type BabeSecondaryPlainPreDigest
  • also, when is BabeSecondaryVRFPreDigest used? (needs info from spec team probably)
  • add stress tests as well

Specification reference

Other information and links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants