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

fix(rotate): Handle consensus logs that are not ScheduledChange #69

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

ratankaliani
Copy link
Member

There are two consensus logs that can trigger a change in the authority set, the ScheduledChange log and the ForcedChange log.

Previously, we did not handle the cases for the other logs: https://paritytech.github.io/polkadot-sdk/master/src/sp_consensus_grandpa/lib.rs.html#152-194.

In a future PR, we should modify the program to add support for ForcedChange consensus log, as it only supports ScheduledChange. This PR simply parses the consensus logs correctly, skipping logs such as OnDisabled, until a ScheduledChange or ForcedChange log is found.

@ratankaliani ratankaliani merged commit 4b23277 into main Nov 6, 2024
1 of 2 checks passed
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.

1 participant