Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- cacheBlock :: HasHeader blk => blk -> BlockCache blk -> BlockCache blk
- empty :: BlockCache blk
- lookup :: HasHeader blk => HeaderHash blk -> BlockCache blk -> Maybe blk
- singleton :: HasHeader blk => blk -> BlockCache blk
- data BlockCache blk
Documentation
cacheBlock :: HasHeader blk => blk -> BlockCache blk -> BlockCache blk Source #
empty :: BlockCache blk Source #
lookup :: HasHeader blk => HeaderHash blk -> BlockCache blk -> Maybe blk Source #
singleton :: HasHeader blk => blk -> BlockCache blk Source #
opaque
data BlockCache blk Source #