We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f32450 commit e14f29dCopy full SHA for e14f29d
runtime/src/migrations/pos.rs
@@ -72,6 +72,12 @@ fn initialize_pallet_staking() {
72
pallet_staking::MinValidatorBond::<Runtime>::put(10);
73
pallet_staking::MaxValidatorsCount::<Runtime>::put(20);
74
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
+ }));
81
82
for &(ref account, _, balance, ref status) in &stakers {
83
log::info!(
0 commit comments