| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Network.TxSubmission.Inbound.V2.Policy
Contents
Synopsis
- data TxDecisionPolicy = TxDecisionPolicy {
- maxNumTxIdsToRequest :: !NumTxIdsToReq
- maxUnacknowledgedTxIds :: !NumTxIdsToReq
- txsSizeInflightPerPeer :: !SizeInBytes
- maxOutstandingTxBatchesPerPeer :: !Int
- txInflightMultiplicity :: !Int
- bufferedTxsMinLifetime :: !DiffTime
- scoreRate :: !Double
- scoreMax :: !Double
- scoreAcceptDecrement :: !Double
- interTxSpace :: !DiffTime
- inflightTimeout :: !DiffTime
- maxPeerClaimDelay :: !DiffTime
- disablePipelinedTxIdRequests :: !Bool
- defaultTxDecisionPolicy :: TxDecisionPolicy
- saneTxDecisionPolicy :: TxDecisionPolicy -> Bool
- max_TX_SIZE :: SizeInBytes
- newtype NumTxIdsToReq = NumTxIdsToReq {}
Documentation
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 # | |
| Eq TxDecisionPolicy Source # | |
Defined in Ouroboros.Network.TxSubmission.Inbound.V2.Policy Methods (==) :: TxDecisionPolicy -> TxDecisionPolicy -> Bool # (/=) :: TxDecisionPolicy -> TxDecisionPolicy -> Bool # | |
saneTxDecisionPolicy :: TxDecisionPolicy -> Bool Source #
Sanity check for a TxDecisionPolicy: True when every field lies
in the range the decision logic assumes.
The window and per-peer limit fields must be positive (otherwise the
peer can make no progress), the rate, score and delay parameters must
be non-negative, and inflightTimeout must be at least interTxSpace
(their difference is used as a non-negative delay when bumping a stuck
entry's inflight-multiplicity cap). defaultTxDecisionPolicy satisfies
it.
max_TX_SIZE :: SizeInBytes Source #
Maximal tx size.
Affects:
TxDecisionPolicymaximumIngressQueuefor `tx-submission` mini-protocol, seetxSubmissionProtocolLimits
Re-exports
newtype NumTxIdsToReq #
Constructors
| NumTxIdsToReq | |
Fields | |