consensus-test
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Consensus.PeerSimulator.Trace

Description

Helpers for tracing used by the peer simulator.

Synopsis

Documentation

data TraceScheduledServerHandlerEvent state blk Source #

Constructors

TraceHandling HandlerName state 
TraceRestarting HandlerName 
TraceDoneHandling HandlerName 

data TraceSchedulerEvent blk Source #

Trace messages sent by the scheduler.

Constructors

TraceBeginningOfTime

Right before running the first tick (at time 0) of the schedule.

TraceEndOfTime

Right after running the last tick of the schedule.

TraceNewTick Int DiffTime (Peer (NodeState blk)) (AnchoredFragment (Header blk)) (Maybe (AnchoredFragment (Header blk)))

When beginning a new tick. Contains the tick number (counting from 0), the duration of the tick, the states, the current chain and the candidate fragment.

traceLinesWithTracer m String → [String] → m () Source #