ouroboros-consensus-0.26.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Mempool.Update

Description

Operations that update the mempool. They are internally divided in the pure and impure sides of the operation.

Synopsis

Documentation

implAddTx Source #

Arguments

∷ (IOLike m, LedgerSupportsMempool blk, ValidateEnvelope blk, HasTxId (GenTx blk)) 
MempoolEnv m blk 
AddTxOnBehalfOf

Whether we're acting on behalf of a remote peer or a local client.

GenTx blk

The transaction to add to the mempool.

→ m (MempoolAddTxResult blk) 

Add a single transaction to the mempool, blocking if there is no space.