| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.TxSubmission.Inbound.V2
Synopsis
- 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 ()
- module Ouroboros.Network.TxSubmission.Inbound.V2.Registry
- module Ouroboros.Network.TxSubmission.Inbound.V2.Types
- data TxDecisionPolicy = TxDecisionPolicy {}
- defaultTxDecisionPolicy :: TxDecisionPolicy
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
| |
Instances
| NFData TxDecisionPolicy Source # | |
Defined in Ouroboros.Network.TxSubmission.Inbound.V2.Policy Methods rnf :: TxDecisionPolicy -> () # | |
| Show TxDecisionPolicy Source # | |
Defined in Ouroboros.Network.TxSubmission.Inbound.V2.Policy Methods showsPrec :: Int -> TxDecisionPolicy -> ShowS # show :: TxDecisionPolicy -> String # showList :: [TxDecisionPolicy] -> ShowS # | |