Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- localTxMonitorClient :: forall txid tx slot (m :: Type -> Type). Applicative m => (tx -> txid) -> LocalTxMonitorClient txid tx slot m ([(tx, Bool)], MempoolSizeAndCapacity)
- localTxMonitorServer :: forall txid tx slot (m :: Type -> Type). (Applicative m, Eq txid) => (tx -> txid) -> (slot, [tx]) -> LocalTxMonitorServer txid tx slot m ()
Documentation
localTxMonitorClient :: forall txid tx slot (m :: Type -> Type). Applicative m => (tx -> txid) -> LocalTxMonitorClient txid tx slot m ([(tx, Bool)], MempoolSizeAndCapacity) Source #
An example client which acquire a snapshot from the server and fetches all transactions from it, and check presence of each of these transactions.
localTxMonitorServer :: forall txid tx slot (m :: Type -> Type). (Applicative m, Eq txid) => (tx -> txid) -> (slot, [tx]) -> LocalTxMonitorServer txid tx slot m () Source #
An example server which streams predefined transactions to a client. The preset is the only snapshot of the server, so acquiring/re-acquiring always yield the same transactions.