Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Network.TxSubmission.Mempool.Simple
Description
The module should be imported qualified.
Synopsis
- newtype Mempool (m :: Type -> Type) tx = Mempool (StrictTVar m (Seq tx))
- empty :: MonadSTM m => m (Mempool m tx)
- new :: MonadSTM m => [tx] -> m (Mempool m tx)
- read :: MonadSTM m => Mempool m tx -> m [tx]
- getReader :: forall tx txid (m :: Type -> Type). (MonadSTM m, Eq txid) => (tx -> txid) -> (tx -> SizeInBytes) -> Mempool m tx -> TxSubmissionMempoolReader txid tx Int m
- getWriter :: forall tx txid (m :: Type -> Type). (MonadSTM m, Ord txid) => (tx -> txid) -> (tx -> Bool) -> Mempool m tx -> TxSubmissionMempoolWriter txid tx Int m