ouroboros-network
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.TxSubmission.Inbound.V1

Synopsis

Documentation

txSubmissionInbound Source #

Arguments

:: forall txid tx idx (m :: Type -> Type) err version. (Ord txid, NoThunks txid, NoThunks tx, MonadSTM m, MonadThrow m, MonadDelay m) 
=> Tracer m (TraceTxSubmissionInbound txid tx) 
-> TxSubmissionInitDelay 
-> NumTxIdsToAck

Maximum number of unacknowledged txids allowed

-> TxSubmissionMempoolReader txid tx idx m 
-> TxSubmissionMempoolWriter txid tx idx m err 
-> version 
-> TxSubmissionServerPipelined txid tx m () 

data TxSubmissionMempoolWriter txid tx idx (m :: Type -> Type) err Source #

The consensus layer functionality that the inbound side of the tx submission logic requires.

This is provided to the tx submission logic by the consensus layer.

Constructors

TxSubmissionMempoolWriter 

Fields

  • txId :: tx -> txid

    Compute the transaction id from a transaction.

    This is used in the protocol handler to verify a full transaction matches a previously given transaction id.

  • mempoolAddTxs :: [tx] -> m ([txid], [(txid, err)])

    Supply a batch of transactions to the mempool. They are either accepted or rejected individually, but in the order supplied.

    Return list of valid tx's added to the mempool and a list of invalid tx's with the corresponding error.

data ProcessedTxCount Source #

Constructors

ProcessedTxCount 

Fields