Octez_smart_rollup_node.Node_context_loaderval lock :
data_dir:string ->
Lwt_unix.file_descr Tezos_base.TzPervasives.tzresult Lwt.tlock ~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.tinit 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.
val close : _ Node_context.t -> unit Tezos_base.TzPervasives.tzresult Lwt.tCloses the store, context and Layer 1 monitor.
module For_snapshots : sig ... end