ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.HardFork.History.Caching

Synopsis

Documentation

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

Stateful abstraction to execute queries

Constructors

RunWithCachedSummary

Fields

runWithCachedSummary :: forall 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.