regression tests for proposal fast-forward attack

This commit is contained in:
Hongrui Fang 2022-10-31 22:33:55 +08:00
parent 25ae7ce820
commit a200f4ee20
2 changed files with 43 additions and 1 deletions

View file

@ -327,6 +327,16 @@ specs =
, forGovernorValidator = Just False
, forAuthorityTokenPolicy = Just True
}
, Advance.mkTestTree'
"fastforward to finished"
(\b -> unwords ["from", show b.proposalParameters.fromStatus])
(Advance.mkFastforwardToFinishBundles cs es)
Advance.Validity
{ forProposalValidator = False
, forStakeValidator = True
, forGovernorValidator = Just False
, forAuthorityTokenPolicy = Just True
}
]
]
, group "unlocking" $