Skip to content

Commit e14f29d

Browse files
committed
init pallet_staking era
1 parent 2f32450 commit e14f29d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

runtime/src/migrations/pos.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ fn initialize_pallet_staking() {
7272
pallet_staking::MinValidatorBond::<Runtime>::put(10);
7373
pallet_staking::MaxValidatorsCount::<Runtime>::put(20);
7474
pallet_staking::MaxNominatorsCount::<Runtime>::put(100);
75+
let era: sp_staking::EraIndex = 0;
76+
pallet_staking::CurrentEra::<Runtime>::set(Some(era));
77+
pallet_staking::ActiveEra::<Runtime>::set(Some(pallet_staking::ActiveEraInfo {
78+
index: era,
79+
start: None,
80+
}));
7581

7682
for &(ref account, _, balance, ref status) in &stakers {
7783
log::info!(

0 commit comments

Comments
 (0)