Module Octez_smart_rollup_node.Node_context_loader

val lock : data_dir:string -> Lwt_unix.file_descr Tezos_base.TzPervasives.tzresult Lwt.t

lock ~data_dir locks the data_dir.

val init : Tezos_client_base.Client_context.full -> data_dir:string -> irmin_cache_size:int -> ?last_whitelist_update:(Z.t * Stdlib.Int32.t) -> store_access: [< `Read | `Write Read ] as 'store Tezos_layer2_store.Access_mode.t -> context_access: [< `Read | `Write Read ] as 'context Tezos_layer2_store.Access_mode.t -> Layer1.t -> Node_context.genesis_info -> lcc:Node_context.lcc -> lpc:Octez_smart_rollup.Commitment.t option -> Octez_smart_rollup.Kind.t -> Node_context.current_protocol -> Configuration.t -> < store : 'store ; context : 'context > Node_context.t Tezos_base.TzPervasives.tzresult Lwt.t

init cctxt ~data_dir mode l1_ctxt genesis_info protocol configuration initializes the rollup representation. The rollup origination level and kind are fetched via an RPC call to the layer1 node that cctxt uses for RPC requests.

Closes the store, context and Layer 1 monitor.

module For_snapshots : sig ... end