Moduleouroboros-network-1.2.0.0
Ouroboros.Network.TxSubmission.Inbound.V2.Registry
Synopsis
- value newPeerTxRegistry
- value newSharedTxStateVar
- value newTxSubmissionCountersVar
- value txCountersThreadV2
- value withPeer
- newtype RegisteredDelay
- data PeerTxAPI
- type PeerTxRegistry
- type SharedTxStateVar
- type TxSubmissionCountersVar
- Packageouroboros-network-1.2.0.0
- Exports10
- LicenceApache-2.0
Constructors
PeerTxAPIrunNextPeerAction :: Time -> PeerTxLocalState tx -> m (PeerAction, PeerTxLocalState tx)runNextPeerActionPipelined :: Time -> PeerTxLocalState tx -> m (PeerAction, PeerTxLocalState tx)applyReceivedTxIds :: Time -> NumTxIdsToReq -> [(txid, SizeInBytes)] -> PeerTxLocalState tx -> m (PeerTxLocalState tx)applyReceivedTxs :: Time -> [(txid, tx)] -> PeerTxLocalState tx -> m (Int, PeerTxLocalState tx)applySubmittedTxs :: Time -> [TxKey] -> [TxKey] -> PeerTxLocalState tx -> m (PeerTxLocalState tx)resolveTxRequest :: PeerTxLocalState tx -> [TxKey] -> m (Map txid SizeInBytes)resolveBufferedTxs :: PeerTxLocalState tx -> [TxKey] -> m [(TxKey, txid, tx)]addCounters :: TxSubmissionCounters -> m ()
type
type PeerTxRegistry (m :: Type -> Type) peeraddr = StrictTVar m (Map peeraddr (PeerTxInFlightVar m, TxSubmissionCountersVar m))