@@ -236,6 +236,48 @@ spoAndCCVotingSpec = do
236236 logRatificationChecks constitutionActionId
237237 passNEpochs 2
238238 getConstitution `shouldNotReturn` newConstitution
239+ -- https://github.com/IntersectMBO/cardano-ledger/issues/5418
240+ -- TODO: Re-enable after issue is resolved, by removing this override
241+ disableInConformanceIt " Committee proposals pass with inactive committee" $
242+ whenPostBootstrap $ do
243+ modifyPParams $ \ pp ->
244+ pp
245+ & ppCommitteeMinSizeL .~ 2
246+ & ppCommitteeMaxTermLengthL .~ EpochInterval 50
247+ coldCommitteeActive <- KeyHashObj <$> freshKeyHash
248+ coldCommitteeInactive <- KeyHashObj <$> freshKeyHash
249+ startingEpoch <- getsNES nesELL
250+ maxTermLength <- getsPParams ppCommitteeMaxTermLengthL
251+ (drep, _, _) <- setupSingleDRep 1_000_000_000
252+ (spo, _, _) <- setupPoolWithStake $ Coin 1_000_000_000
253+ let
254+ committeeMap =
255+ [ (coldCommitteeActive, addEpochInterval startingEpoch maxTermLength)
256+ , (coldCommitteeInactive, addEpochInterval startingEpoch $ EpochInterval 5 )
257+ ]
258+ initialCommittee <- getCommitteeMembers
259+ committeeActionId <-
260+ impAnn " Submit committee update"
261+ . submitGovAction
262+ $ UpdateCommittee
263+ SNothing
264+ initialCommittee
265+ committeeMap
266+ (0 %! 1 )
267+ submitYesVote_ (DRepVoter drep) committeeActionId
268+ submitYesVote_ (StakePoolVoter spo) committeeActionId
269+ passNEpochs 5
270+ getCommitteeMembers `shouldReturn` Map. keysSet committeeMap
271+ committeeProposal <-
272+ elements
273+ [ NoConfidence (SJust (GovPurposeId committeeActionId))
274+ , UpdateCommittee (SJust (GovPurposeId committeeActionId)) Set. empty [] (0 %! 1 )
275+ ]
276+ committeeActionId2 <- submitGovAction committeeProposal
277+ submitYesVote_ (DRepVoter drep) committeeActionId2
278+ submitYesVote_ (StakePoolVoter spo) committeeActionId2
279+ passNEpochs 2
280+ getLastEnactedCommittee `shouldReturn` SJust (GovPurposeId committeeActionId2)
239281
240282committeeExpiryResignationDiscountSpec ::
241283 forall era .
0 commit comments