Safe HaskellNone




type Error a = Either Text a Source #

newtype LocalChannel Source #

Clone the original channel for each connected client, then use this wrapper to make sure that no data is consumed from the original channel.


LocalChannel (TChan Block) 

data ServerHandler Source #

A handler used to pass around the path to the server and channels used for controlling the server.

data ServerCommand Source #

The commands that control the server. This API is not part of the client interface, and in order to call them directly you will need access to the returned ServerHandler


ModifySlot (Slot -> Slot) 
AddTx Tx 

data ServerResponse Source #

The response from the server. Can be used for the information passed back, or for synchronisation.

addTx :: MonadIO m => ServerHandler -> Tx -> m () Source #

runServerNode :: MonadIO m => Trace IO PABServerLogMsg -> FilePath -> Integer -> MockNodeServerChainState -> SlotConfig -> m ServerHandler Source #

Start the server in a new thread, and return a server handler used to control the server

ChainSync protocol

Protocol setup

Computing intersections

TxSubmission protocol