consensus-test
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Consensus.Genesis.Setup.GenChains

Synopsis

Documentation

data GenesisTest blk schedule Source #

All the data used by point schedule tests.

Constructors

GenesisTest 

Fields

Instances

Instances details
Functor (GenesisTest blk) Source # 
Instance details

Defined in Test.Consensus.PointSchedule

Methods

fmap ∷ (a → b) → GenesisTest blk a → GenesisTest blk b #

(<$) ∷ a → GenesisTest blk b → GenesisTest blk a #

genChainsWithExtraHonestPeersGen WordGen WordGen (GenesisTest TestBlock ()) Source #

Random generator for a block tree. The block tree contains one trunk (the “honest” chain) and as many branches as given as a parameter (the “alternative” chains or “bad” chains). For instance, one such tree could be graphically represented as:

slots: 1 2 3 4 5 6 7 8 9 trunk: O─────1──2──3──4─────5──6──7 │ ╰─────6 ╰─────3──4─────5 For now, the extraHonestPeers generator is only used to fill the GenesisTest field. However, in the future it could also be used to generate "short forks" near the tip of the trunk.