= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A persistent store on disk for storing L2 blocks. It is composed of an index file and a data file which contains the actual blocks. The keys of the index are the L2 block hashes.
val mem : t -> L2block.hash -> bool Lwt.t
Returns true
if the L2 block hash exists in the index, i.e. if the block exists in the store.
val predecessor : t -> L2block.hash -> L2block.hash option Lwt.t
Returns the predecessor of the block (by only querying the index, without reading the block data).
val context :
t ->
L2block.hash ->
Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_context_hash.t option Lwt.t
Returns the context hash of the block (by only querying the index, without reading the block data).
val read_block : t -> L2block.hash -> L2block.t option Lwt.t
Read a block from the file on disk, given a L2 block hash. Returns None
if the block is not stored.