ouroboros-network-0.1.0.1: A networking layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Network.Protocol.BlockFetch.Codec

Synopsis

Documentation

codecBlockFetch :: forall block point m. MonadST m => (block -> Encoding ) -> ( forall s. Decoder s block) -> (point -> Encoding ) -> ( forall s. Decoder s point) -> Codec ( BlockFetch block point) DeserialiseFailure m ByteString Source #

Codec for chain sync that encodes/decodes blocks

NOTE: See wrapCBORinCBOR and unwrapCBORinCBOR if you want to use this with a block type that has annotations.

byteLimitsBlockFetch :: forall bytes block point. (bytes -> Word ) -> ProtocolSizeLimits ( BlockFetch block point) bytes Source #

Byte Limit.

timeLimitsBlockFetch :: forall block point. ProtocolTimeLimits ( BlockFetch block point) Source #

Time Limits

TokIdle No timeout TokBusy longWait timeout TokStreaming longWait timeout