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

grandpa: support for hard forking any pending standard changes #5306

Merged
merged 3 commits into from
Mar 19, 2020

Conversation

andresilva
Copy link
Contributor

This PR adds support in GRANDPA for defining tuples (SetId, (BlockHash, BlockNumber), AuthorityList) which will be replace any existing pending authority set changes and additionally will also replace the signalled authority set change when importing a hard fork block (e.g. when syncing the chain after the fact).

@andresilva andresilva added A0-please_review Pull request needs code review. M4-core B0-silent Changes should not be mentioned in any release notes labels Mar 18, 2020
@andresilva andresilva requested a review from Demi-Marie as a code owner March 18, 2020 18:02
@andresilva
Copy link
Contributor Author

cc @svyatonik We'll need to add support for this in the light client as well as it won't be able to sync Kusama after this.

@svyatonik
Copy link
Contributor

@andresilva Thanks, I've logged this in #5309 . Finalization on light clients is broken on Kusama anyway - see #4728

@andresilva andresilva merged commit 1ea615c into master Mar 19, 2020
@andresilva andresilva deleted the andre/grandpa-hard-forks branch March 19, 2020 10:37
@andresilva
Copy link
Contributor Author

@svyatonik Yeah, I forgot that we need to change light block import to require storage proofs instead for checking authorities.

General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Mar 19, 2020
…ytech#5306)

* grandpa: support for hard forking any pending standard changes

* grandpa: expose authority_set_hard_forks in block import constructor

* grandpa: don't break the public api
General-Beck pushed a commit to General-Beck/substrate that referenced this pull request Mar 19, 2020
…ytech#5306)

* grandpa: support for hard forking any pending standard changes

* grandpa: expose authority_set_hard_forks in block import constructor

* grandpa: don't break the public api
bkchr pushed a commit that referenced this pull request Mar 24, 2020
* grandpa: support for hard forking any pending standard changes

* grandpa: expose authority_set_hard_forks in block import constructor

* grandpa: don't break the public api
romanb pushed a commit to romanb/substrate that referenced this pull request Apr 2, 2020
…ytech#5306)

* grandpa: support for hard forking any pending standard changes

* grandpa: expose authority_set_hard_forks in block import constructor

* grandpa: don't break the public api
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. B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants