consensus-diffusion-test
Safe HaskellNone
LanguageHaskell2010

Test.Consensus.PeerSimulator.Run

Synopsis

Documentation

data SchedulerConfig Source #

Behavior config for the scheduler.

Constructors

SchedulerConfig 

Fields

debugSchedulerSchedulerConfigSchedulerConfig Source #

Enable debug tracing during a scheduler test.

defaultSchedulerConfigSchedulerConfig Source #

Default scheduler config

runPointSchedule ∷ (IOLike m, MonadTime m, MonadTimer m, ShowProxy blk, ShowProxy (Header blk), ConfigSupportsNode blk, LedgerSupportsProtocol blk, SerialiseDiskConstraints blk, BlockSupportsDiffusionPipelining blk, InspectLedger blk, HasHardForkHistory blk, ConvertRawHash blk, CanUpgradeLedgerTables (LedgerState blk), HasPointScheduleTestParams blk, Eq (Header blk), Eq blk) ⇒ ProtocolInfoArgs blk → SchedulerConfigGenesisTestFull blk → Tracer m (TraceEvent blk) → m (StateView blk) Source #

Construct STM resources, set up ChainSync and BlockFetch threads, and send all ticks in a PointSchedule to all given peers in turn.