mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 17:55:42 +00:00
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>
This commit is contained in:
@@ -22,8 +22,11 @@ use frame_support::{
|
||||
|
||||
use crate::{Config, CurrentSetId, SetIdSession, LOG_TARGET};
|
||||
|
||||
pub use v5::MigrateV4ToV5;
|
||||
|
||||
/// Version 4.
|
||||
pub mod v4;
|
||||
mod v5;
|
||||
|
||||
/// This migration will clean up all stale set id -> session entries from the
|
||||
/// `SetIdSession` storage map, only the latest `max_set_id_session_entries`
|
||||
|
||||
Reference in New Issue
Block a user