File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -447,13 +447,18 @@ impl pallet_babe::Config for Runtime {
447447 type EpochDuration = EpochDuration ;
448448 type ExpectedBlockTime = ExpectedBlockTime ;
449449 type EpochChangeTrigger = pallet_babe:: ExternalTrigger ;
450+
451+ // In normal builds, respect session's disabled list.
452+ #[ cfg( not( feature = "try-runtime" ) ) ]
450453 type DisabledValidators = Session ;
451454
452- type KeyOwnerProof = sp_session:: MembershipProof ;
455+ // In try-runtime builds, bypass disabled validators to unblock simulation.
456+ #[ cfg( feature = "try-runtime" ) ]
457+ type DisabledValidators = ( ) ;
453458
459+ type KeyOwnerProof = sp_session:: MembershipProof ;
454460 type EquivocationReportSystem =
455461 pallet_babe:: EquivocationReportSystem < Self , Offences , Historical , ReportLongevity > ;
456-
457462 type WeightInfo = ( ) ;
458463 type MaxAuthorities = MaxAuthorities ;
459464 type MaxNominators = MaxNominatorRewardedPerValidator ;
Original file line number Diff line number Diff line change @@ -440,14 +440,19 @@ impl pallet_babe::Config for Runtime {
440440 type EpochDuration = EpochDuration ;
441441 type ExpectedBlockTime = ExpectedBlockTime ;
442442 type EpochChangeTrigger = pallet_babe:: ExternalTrigger ;
443+
444+ // In normal builds, respect session's disabled list.
445+ #[ cfg( not( feature = "try-runtime" ) ) ]
443446 type DisabledValidators = Session ;
444- type MaxNominators = MaxNominatorRewardedPerValidator ;
445447
446- type KeyOwnerProof = sp_session:: MembershipProof ;
448+ // In try-runtime builds, bypass disabled validators to unblock simulation.
449+ #[ cfg( feature = "try-runtime" ) ]
450+ type DisabledValidators = ( ) ;
447451
452+ type MaxNominators = MaxNominatorRewardedPerValidator ;
453+ type KeyOwnerProof = sp_session:: MembershipProof ;
448454 type EquivocationReportSystem =
449455 pallet_babe:: EquivocationReportSystem < Self , Offences , Historical , ReportLongevity > ;
450-
451456 type WeightInfo = ( ) ;
452457 type MaxAuthorities = MaxAuthorities ;
453458}
You can’t perform that action at this time.
0 commit comments