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

Ouroboros.Network.Protocol.TxSubmission2.Codec

Synopsis

Documentation

codecTxSubmission2 :: forall txid tx m. MonadST m => (txid -> Encoding ) -> ( forall s. Decoder s txid) -> (tx -> Encoding ) -> ( forall s. Decoder s tx) -> Codec ( TxSubmission2 txid tx) DeserialiseFailure m ByteString Source #

encodeTxSubmission2 :: forall txid tx. (txid -> Encoding ) -> (tx -> Encoding ) -> forall (pr :: PeerRole ) (st :: TxSubmission2 txid tx) (st' :: TxSubmission2 txid tx). PeerHasAgency pr st -> Message ( TxSubmission2 txid tx) st st' -> Encoding Source #

decodeTxSubmission2 :: forall txid tx. ( forall s. Decoder s txid) -> ( forall s. Decoder s tx) -> forall (pr :: PeerRole ) (st :: TxSubmission2 txid tx) s. PeerHasAgency pr st -> Int -> Word -> Decoder s ( SomeMessage st) Source #

byteLimitsTxSubmission2 :: forall bytes txid tx. (bytes -> Word ) -> ProtocolSizeLimits ( TxSubmission2 txid tx) bytes Source #

Byte Limits.

timeLimitsTxSubmission2 :: forall txid tx. ProtocolTimeLimits ( TxSubmission2 txid tx) Source #

Time Limits.

`TokTxIds TokBlocking` No timeout `TokTxIds TokNonBlocking` shortWait timeout TokTxs shortWait timeout TokIdle shortWait timeout