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

grandpa: generic voting rule for backing off from best block #4635

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

andresilva
Copy link
Contributor

We already had a voting rule that made sure that the GRANDPA voter would vote at most for best_block - 1. This PR changes the rule so that the distance from best block is arbitrary. Additionally, we change the default distance to be 2 blocks.

This is useful for Kusama in case we need to easily revert a borked runtime upgrade triggered through democracy.

@andresilva andresilva added A0-please_review Pull request needs code review. M4-core labels Jan 15, 2020
@rphmeier rphmeier merged commit 99430a5 into master Jan 16, 2020
@rphmeier rphmeier deleted the andre/grandpa-best-backoff-rule branch January 16, 2020 13:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants