| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.MiniProtocol.BlockFetch.Server
Contents
Synopsis
- blockFetchServer :: forall m blk. (IOLike m, StandardHash blk, Typeable blk) => Tracer m (TraceBlockFetchServerEvent blk) -> ChainDB m blk -> NodeToNodeVersion -> ResourceRegistry m -> BlockFetchServer (Serialised blk) (Point blk) m ()
- data TraceBlockFetchServerEvent blk
- data BlockFetchServerException
Documentation
blockFetchServer :: forall m blk. (IOLike m, StandardHash blk, Typeable blk) => Tracer m (TraceBlockFetchServerEvent blk) -> ChainDB m blk -> NodeToNodeVersion -> ResourceRegistry m -> BlockFetchServer (Serialised blk) (Point blk) m () Source #
Block fetch server based on
mockBlockFetchServer1, but using
the ChainDB.
Trace events
data TraceBlockFetchServerEvent blk Source #
Events traced by the Block Fetch Server.
Instances
| Eq (TraceBlockFetchServerEvent blk) Source # | |
Defined in Ouroboros.Consensus.MiniProtocol.BlockFetch.Server Methods (==) :: TraceBlockFetchServerEvent blk -> TraceBlockFetchServerEvent blk -> Bool # (/=) :: TraceBlockFetchServerEvent blk -> TraceBlockFetchServerEvent blk -> Bool # | |
| Show (TraceBlockFetchServerEvent blk) Source # | |
Defined in Ouroboros.Consensus.MiniProtocol.BlockFetch.Server Methods showsPrec :: Int -> TraceBlockFetchServerEvent blk -> ShowS # show :: TraceBlockFetchServerEvent blk -> String # showList :: [TraceBlockFetchServerEvent blk] -> ShowS # | |
Exceptions
data BlockFetchServerException Source #