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.

TraceExtraDelay DiffTime

An extra optional delay to keep the simulation running

∀ m. TraceNewTick Int DiffTime (Peer (NodeState blk)) (AnchoredFragment (Header blk)) (Maybe (AnchoredFragment (Header blk))) [(PeerId, ChainSyncJumpingState m blk)]

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

TraceNodeShutdownStart (WithOrigin SlotNo) 
TraceNodeShutdownComplete 
TraceNodeStartupStart 
TraceNodeStartupComplete (AnchoredFragment (Header blk)) 

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