ouroboros-network-0.1.0.0: A networking layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Protocol.TxSubmission2.Codec

Synopsis

Documentation

codecTxSubmission2 ∷ ∀ txid tx m. MonadST m ⇒ (txid → Encoding) → (∀ s. Decoder s txid) → (tx → Encoding) → (∀ s. Decoder s tx) → Codec (TxSubmission2 txid tx) DeserialiseFailure m ByteString Source #

codecTxSubmission2Id ∷ ∀ txid tx m. Monad m ⇒ Codec (TxSubmission2 txid tx) CodecFailure m (AnyMessage (TxSubmission2 txid tx)) Source #

encodeTxSubmission2 ∷ ∀ txid tx. (txid → Encoding) → (tx → Encoding) → ∀ (pr ∷ PeerRole) (st ∷ TxSubmission2 txid tx) (st' ∷ TxSubmission2 txid tx). PeerHasAgency pr st → Message (TxSubmission2 txid tx) st st' → Encoding Source #

decodeTxSubmission2 ∷ ∀ txid tx. (∀ s. Decoder s txid) → (∀ s. Decoder s tx) → ∀ (pr ∷ PeerRole) (st ∷ TxSubmission2 txid tx) s. PeerHasAgency pr st → IntWord → Decoder s (SomeMessage st) Source #

byteLimitsTxSubmission2 ∷ ∀ bytes txid tx. (bytes → Word) → ProtocolSizeLimits (TxSubmission2 txid tx) bytes Source #

Byte Limits.

timeLimitsTxSubmission2 ∷ ∀ txid tx. ProtocolTimeLimits (TxSubmission2 txid tx) Source #

Time Limits.

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