package octez-smart-rollup-node-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Node_context.Node_storeSource

Exposed functions to manipulate Node_context store outside of this module

Sourceval load : 'a Tezos_layer2_store.Store_sigs.mode -> index_buffer_size:int -> l2_blocks_cache_size:int -> string -> 'a store Tezos_base.TzPervasives.tzresult Lwt.t

load mode ~index_buffer_size ~l2_blocks_cache_size directory loads a store form the data persisted directory as described in Store_sigs.load

Sourceval close : 'a store -> unit Tezos_base.TzPervasives.tzresult Lwt.t

close_store store closes the store

Sourceval check_and_set_history_mode : 'a Tezos_layer2_store.Store_sigs.mode -> 'a store -> Configuration.history_mode option -> unit Tezos_base.TzPervasives.tzresult Lwt.t

check_and_set_history_mode store history_mode checks the compatibility between given history mode and that of the store. History mode can be converted from Archive to Full. Trying to convert from Full to Archive will trigger an error.

Sourceval of_store : 'a Store.t -> 'a store
OCaml

Innovation. Community. Security.