ouroboros-consensus-0.21.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.MiniProtocol.LocalStateQuery.Server

Documentation

localStateQueryServer Source #

Arguments

∷ ∀ m blk. (IOLike m, BlockSupportsLedgerQuery blk, ConfigSupportsNode blk, HasAnnTip blk) 
ExtLedgerCfg blk 
STM m (Point blk)

Get tip point

→ (Point blk → STM m (Maybe (ExtLedgerState blk)))

Get a past ledger

STM m (Point blk)

Get the immutable point

LocalStateQueryServer blk (Point blk) (Query blk) m ()