package tezos-legacy-store

  1. Overview
  2. Docs
type store = Chain.store
val get : Chain.store -> store
type contents = {
  1. header : Tezos_base.Block_header.t;
  2. message : string option;
  3. max_operations_ttl : int;
  4. last_allowed_fork_level : Stdlib.Int32.t;
  5. context : Tezos_crypto.Context_hash.t;
  6. metadata : Stdlib.Bytes.t;
}

Block header storage used for pruned blocks. Blocks that are not pruned have their header stored in their contents (see Store.Block.Contents). For an abstraction over a block header, please see the State.Block.Header module.

type pruned_contents = {
  1. header : Tezos_base.Block_header.t;
}
module Operations : Store_sigs.MAP_STORE with type t = store * Tezos_crypto.Block_hash.t and type key = int and type value = Tezos_base.Operation.t list
module Operations_metadata : Store_sigs.MAP_STORE with type t = store * Tezos_crypto.Block_hash.t and type key = int and type value = Stdlib.Bytes.t list
type invalid_block = {
  1. level : int32;
  2. errors : Tezos_error_monad.TzCore.error list;
}

Block predecessors under /blocks/<block_id>/predecessors/<distance>/<block_id>. Used to compute block predecessors in lib_node_shell/state.ml.

OCaml

Innovation. Community. Security.