pallet-grandpa: Remove `GRANDPA_AUTHORITIES_KEY` (#2181)
Remove the `GRANDPA_AUTHORITIES_KEY` key and its usage. Apparently this
was used in the early days to communicate the grandpa authorities to the
node. However, we have now a runtime api that does this for us. So, this
pull request is moving from the custom managed storage item to a FRAME
managed storage item.
This pr also includes a migration for doing the switch on a running
chain.
---------
Co-authored-by:
Davide Galassi <davxy@datawok.net>
Showing
- polkadot/runtime/rococo/src/lib.rs 2 additions, 0 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 1 addition, 0 deletionspolkadot/runtime/westend/src/lib.rs
- substrate/client/consensus/grandpa/src/lib.rs 0 additions, 3 deletionssubstrate/client/consensus/grandpa/src/lib.rs
- substrate/frame/grandpa/src/lib.rs 20 additions, 17 deletionssubstrate/frame/grandpa/src/lib.rs
- substrate/frame/grandpa/src/migrations.rs 3 additions, 0 deletionssubstrate/frame/grandpa/src/migrations.rs
- substrate/frame/grandpa/src/migrations/v5.rs 96 additions, 0 deletionssubstrate/frame/grandpa/src/migrations/v5.rs
- substrate/primitives/consensus/grandpa/src/lib.rs 2 additions, 63 deletionssubstrate/primitives/consensus/grandpa/src/lib.rs
Please register or sign in to comment