ouroboros-consensus-diffusion-0.16.0.0: Integration for the Ouroboros Network layer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.ThreadNet.Util.NodeRestarts

Synopsis

Documentation

data NodeRestart Source #

Constructors

NodeRekey

restart the node with a fresh operational key and immediately emit a delegation certificate transaction

NodeRestart

restart the node without rekeying

newtype NodeRestarts Source #

Which nodes are scheduled to restart in each slot

INVARIANT no element Map is empty

Instances

Instances details
Show NodeRestarts Source # 
Instance details

Defined in Test.ThreadNet.Util.NodeRestarts

Eq NodeRestarts Source # 
Instance details

Defined in Test.ThreadNet.Util.NodeRestarts

Condense NodeRestarts Source # 
Instance details

Defined in Test.ThreadNet.Util.NodeRestarts

genNodeRestartsNodeJoinPlanNumSlotsGen NodeRestarts Source #

Generate a valid NodeRestarts

POSTCONDITION will not restart a node before it joins

POSTCONDITION will not restart a node when it's scheduled to lead *according* *to* *round-robin*

POSTCONDITION will not simultaneously restart all nodes that have previously joined