Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add staking migration
  • Loading branch information
apopiak committed Jun 26, 2020
commit b44d7ac9d5108bcad67c6e586be076688d0c44a2
2 changes: 2 additions & 0 deletions node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,12 +848,14 @@ mod custom_migration {
use frame_support::{traits::OnRuntimeUpgrade, weights::Weight};
use pallet_balances::migration::on_runtime_upgrade as balances_upgrade;
use frame_system::migration::migrate_accounts as accounts_upgrade;
use pallet_staking::migration::migrate_to_simple_payouts as staking_upgrade;

pub struct Upgrade;
impl OnRuntimeUpgrade for Upgrade {
fn on_runtime_upgrade() -> Weight {
let mut weight = 0;
weight += balances_upgrade::<Runtime, pallet_balances::DefaultInstance>();
weight += staking_upgrade::<Runtime>();
weight += accounts_upgrade::<Runtime>();
weight
}
Expand Down