Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

BabeApi_current_epoch() and BabeApi_next_epoch() don't give any information about configuration #8060

Closed
tomaka opened this issue Feb 5, 2021 · 1 comment

Comments

@tomaka
Copy link
Contributor

tomaka commented Feb 5, 2021

The Babe runtime module has the current_epoch() and next_epoch() functions that return the current and next epoch.
However these functions don't give any information about the configuration, which can potentially change between epochs (even though it never does in practice at the moment).

The configuration should either be added to the returned struct, or added a separate methods, or something like this.

Would be useful for GrandPa warp sync, in order to know about a configuration update that is pending at moment of the finalized block we sync to.

@tomaka
Copy link
Contributor Author

tomaka commented May 23, 2021

Done in #8072

@tomaka tomaka closed this as completed May 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant