dmq-node
Safe HaskellNone
LanguageHaskell2010

DMQ.Diffusion.NodeKernel

Documentation

data NodeKernel crypto ntnAddr (m :: Type -> Type) Source #

Constructors

NodeKernel 

Fields

withNodeKernel Source #

Arguments

:: forall crypto ntnAddr m a. (Crypto crypto, MonadAsync m, MonadFork m, MonadDelay m, MonadLabelledSTM m, MonadMask m, MonadMVar m, MonadTime m, Ord ntnAddr, Show ntnAddr, Hashable ntnAddr) 
=> (forall ev. ToJSON ev => Tracer m (WithEventType ev)) 
-> Configuration 
-> StdGen 
-> (NodeKernel crypto ntnAddr m -> m a)

as soon as the callback exits the mempoolWorker and all decision logic threads will be killed

-> m a