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

Ouroboros.Consensus.Mempool.Query

Description

Queries to the mempool

Documentation

implGetSnapshotFor Source #

Arguments

∷ (IOLike m, LedgerSupportsMempool blk, HasTxId (GenTx blk)) 
MempoolEnv m blk 
SlotNo

Get snapshot for this slot number (usually the current slot)

TickedLedgerState blk DiffMK

The ledger state at which we want the snapshot, ticked to slot.

→ (LedgerTables (LedgerState blk) KeysMK → m (LedgerTables (LedgerState blk) ValuesMK))

A function that returns values corresponding to the given keys for the unticked ledger state.

→ m (MempoolSnapshot blk)