package tezos-context

  1. Overview
  2. Docs

Parameters

Signature

val dump_contexts_fd : I.index -> (I.Block_header.t * I.Block_data.t * Tezos_base__TzPervasives.Block_metadata_hash.t option * Tezos_base__TzPervasives.Operation_metadata_hash.t list list option * Tezos_shell_services.History_mode.Legacy.t * (I.Block_header.t -> (I.Pruned_block.t option * I.Protocol_data.t option) Tezos_base__TzPervasives.tzresult Lwt.t)) -> fd:Lwt_unix.file_descr -> unit Tezos_base__TzPervasives.tzresult Lwt.t

Warning Used only to create legacy snapshots (testing purposes)

val restore_context_fd : fd:Lwt_unix.file_descr -> ?expected_block:string -> handle_block: (Tezos_shell_services.History_mode.Legacy.t -> (Tezos_base__TzPervasives.Block_hash.t * I.Pruned_block.t) -> unit Tezos_base__TzPervasives.tzresult Lwt.t) -> handle_protocol_data: (I.Protocol_data.t -> unit Tezos_base__TzPervasives.tzresult Lwt.t) -> block_validation: (I.Block_header.t option -> Tezos_base__TzPervasives.Block_hash.t -> I.Pruned_block.t -> unit Tezos_base__TzPervasives.tzresult Lwt.t) -> I.index -> (I.Block_header.t * I.Block_data.t * Tezos_base__TzPervasives.Block_metadata_hash.t option * Tezos_base__TzPervasives.Operation_metadata_hash.t list list option * Tezos_base__TzPervasives.Block_header.t option * Tezos_shell_services.History_mode.Legacy.t) Tezos_base__TzPervasives.tzresult Lwt.t
val legacy_restore_contexts_fd : I.index -> fd:Lwt_unix.file_descr -> ((Tezos_base__TzPervasives.Block_hash.t * I.Pruned_block.t) list -> unit Tezos_base__TzPervasives.tzresult Lwt.t) -> (I.Block_header.t option -> Tezos_base__TzPervasives.Block_hash.t -> I.Pruned_block.t -> unit Tezos_base__TzPervasives.tzresult Lwt.t) -> (I.Block_header.t * I.Block_data.t * Tezos_base__TzPervasives.Block_metadata_hash.t option * Tezos_base__TzPervasives.Operation_metadata_hash.t list list option * Tezos_shell_services.History_mode.Legacy.t * Tezos_base__TzPervasives.Block_header.t option * Tezos_base__TzPervasives.Block_hash.t list * I.Protocol_data.t list) Tezos_base__TzPervasives.tzresult Lwt.t
val get_snapshot_metadata : snapshot_fd:Lwt_unix.file_descr -> (string * Tezos_shell_services.History_mode.Legacy.t) Tezos_base__TzPervasives.tzresult Lwt.t
OCaml

Innovation. Community. Security.