ouroboros-network
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.TxSubmission.Inbound.V2

Synopsis

TxSubmision Inbound client

txSubmissionInboundV2 :: forall txid tx idx (m :: Type -> Type). (MonadDelay m, MonadThrow m, Ord txid) => Tracer m (TraceTxSubmissionInbound txid tx) -> TxSubmissionInitDelay -> TxSubmissionMempoolWriter txid tx idx m -> PeerTxAPI m txid tx -> TxSubmissionServerPipelined txid tx m () Source #

A tx-submission inbound side (server, sic!).

The server blocks on receiving TxDecision from the decision logic. If there are tx's to download it pipelines two requests: first for tx's second for txid's. If there are no tx's to download, it either sends a blocking or non-blocking request for txid's.

Supporting types and APIs

data TxDecisionPolicy Source #

Policy for making decisions

Constructors

TxDecisionPolicy 

Fields