Skip to content

Commit 8429891

Browse files
committed
Fixed CI/CD issue
1 parent c7e0cc6 commit 8429891

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

runtime/cere-dev/src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

runtime/cere/src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)