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

Ouroboros.Consensus.HardFork.History.Caching

Synopsis

Documentation

data RunWithCachedSummary (xs ∷ [Type]) m Source #

Stateful abstraction to execute queries

Constructors

RunWithCachedSummary 

Fields

runWithCachedSummary ∷ ∀ m xs. MonadSTM m ⇒ STM m (Summary xs) → m (RunWithCachedSummary xs m) Source #

Construct RunWithCachedSummary given action that computes the summary

Most use cases will probably construct this action from an action that reads the ledger state and then computes the summary from that.