Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
[CBR-482] Document CBR-504 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
intricate committed Feb 14, 2019
1 parent 29d19ba commit 68d841d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chain/test/Test/Pos/Chain/Block/Arbitrary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,13 @@ genHeaderAndParams pm era = do
OBFT ObftStrict -> ObftStrictLeaders <$> thisEpochLeaderSchedule
OBFT ObftLenient -> do
ls <- thisEpochLeaderSchedule
-- FIXME IN CBR-504:
-- Decided to hardcode some values here since this
-- generator is critically broken and always returns a
-- `Nothing` for `vhpLeaders`. Therefore, when
-- `Pos.Chain.Block.Logic.Integrity.verifyHeader` is
-- provided with this `VerifyHeaderParams` instance, slot
-- leader schedule verification isn't even performed.
pure $ ObftLenientLeaders (Set.fromList (toList ls))
(Core.BlockCount 5)
(OldestFirst [])
Expand Down

0 comments on commit 68d841d

Please sign in to comment.