Skip to content

Commit

Permalink
fixup improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrisby committed Mar 2, 2020
1 parent 183da45 commit 8be8d2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ouroboros-consensus-byron/test/Test/ThreadNet/DualPBFT.hs
Expand Up @@ -96,6 +96,11 @@ prop_convergence setup = withMaxSuccess 10 $
-- The test infrastructure allows nodes to forge in slot 0; however, the
-- cardano-ledger-specs code causes @PBFTFailure (SlotNotAfterLastBlock
-- (Slot 0) (Slot 0))@ in that case. So we discard such tests.
--
-- This is ultimately due to the spec not modeling EBBs, while Byron always
-- requires that success of the genesis block is always the epoch 0 EBB. As
-- a result, the PBFT implementation tests the slot progression with @<=@
-- to accomodate EBBs whereas the executable STS spec uses @<@.
mightForgeInSlot0 :: Bool
mightForgeInSlot0 = case refResult of
Ref.Forked _ m -> any (0 `Set.member`) m
Expand Down

0 comments on commit 8be8d2f

Please sign in to comment.