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

BABE: added reusing last epoch data in case of skipped epochs #685

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

bhargavbh
Copy link
Contributor

@bhargavbh bhargavbh commented Aug 8, 2023

Addresses #681.
In case BABE fails to produce blocks for epochs $E_{n+1}$ to $E_{n+k}$, the epoch data announced in $E_n$ is used for producing blocks at $E_{n+k+1}$. This detail has been added in the Block Production section

@bhargavbh bhargavbh mentioned this pull request Aug 8, 2023
@bhargavbh bhargavbh requested a review from hndnklnc August 8, 2023 10:35
Copy link

@andresilva andresilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definition in spec looks good to me. Although the definition in the description of the PR is a bit ambiguous to me, what is meant by epoch data En? The epoch data that was announced at the beginning of En and that was meant to be used in En + 1? If that's the case then I agree.

Also unrelated to the changes here but in section 5.3 in the Danger box, slot calculation is defined as s = Tunix * slot_duration whereas it should be s = Tunix / slot_duration.

@bhargavbh
Copy link
Contributor Author

thanks, i updated the PR description and fixed the typo.

@bhargavbh bhargavbh merged commit 2d332a4 into main Aug 8, 2023
3 checks passed
@bhargavbh bhargavbh deleted the bnb/babe-skipped-epoch branch August 8, 2023 14:45
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 this pull request may close these issues.

2 participants