referrerpolicy=no-referrer-when-downgrade

Function pallet_grandpa::migrations::v4::migrate

source ·
pub fn migrate<T: Config, N: AsRef<str>>(new_pallet_name: N) -> Weight
Expand description

Migrate the entire storage of this pallet to a new prefix.

This new prefix must be the same as the one set in construct_runtime. For safety, use PalletInfo to get it, as: <Runtime as frame_system::Config>::PalletInfo::name::<GrandpaPallet>.

The old storage prefix, GrandpaFinality is hardcoded in the migration code.