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

Ouroboros.Consensus.Storage.ChainDB.Impl.BlockCache

Contents

Description

Cache blocks in memory

Intended for qualified import.

import           Ouroboros.Consensus.Storage.ChainDB.Impl.BlockCache (BlockCache)
import qualified Ouroboros.Consensus.Storage.ChainDB.Impl.BlockCache as BlockCache
Synopsis

Documentation

cacheBlockHasHeader blk ⇒ blk → BlockCache blk → BlockCache blk Source #

lookupHasHeader blk ⇒ HeaderHash blk → BlockCache blk → Maybe blk Source #

singletonHasHeader blk ⇒ blk → BlockCache blk Source #

opaque