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.

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 #

genChainsGen 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