package tezos-store

  1. Overview
  2. Docs
val check_consistency : [ `Chain_dir ] Naming.directory -> Tezos_base.Genesis.t -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

check_consistency store_dir genesis checks that the store is in a consistent state.

val fix_consistency : ?history_mode:Tezos_shell_services.History_mode.t -> [ `Chain_dir ] Naming.directory -> Tezos_context.Context.index -> Tezos_base.Genesis.t -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

fix_consistency ?history_mode store_dir context_index genesis aims to fix a store if it is in an inconsistent state. To do so, it will inspect the stored data and try infer all the missing or corrupted parts.

OCaml

Innovation. Community. Security.