package tezos-dal-node-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Proto : Tezos_protocol_updater.Registered_protocol.T
type block_info
val block_info : ?chain:Tezos_shell_services.Block_services.chain -> ?block:Tezos_shell_services.Block_services.block -> metadata:[ `Always | `Never ] -> Tezos_rpc.Context.generic -> block_info Tezos_base.TzPervasives.tzresult Lwt.t

block_info ?chain ?block ~metadata ctxt returns the information of the block in ctxt for the given chain. Block's metadata are included or skipped depending on the value of metadata. This is a wrapper on top of Protocol_client_context.Alpha_block_services.info.

val get_constants : Tezos_shell_services.Chain_services.chain -> Tezos_shell_services.Block_services.block -> Tezos_rpc.Context.generic -> proto_parameters Tezos_base.TzPervasives.tzresult Lwt.t

get_committee ctxt ~level retrieves the DAL committee at level from L1 as a map that associates to the public key hash pkh of the member of the committee an interval (s,n), meaning that the slots s;s+1;...;s+n-1 belong to pkh

val attested_slot_headers : block_info -> number_of_slots:int -> slot_index list Tezos_base.TzPervasives.tzresult

attested_slot_headers block_info number_of_slots reads the metadata of the given block_info and constructs the list of attested slots headers.

The value of number_of_slots indicates the current maximum number of slots on DAL per level.

Fails with Cannot_read_block_metadata if block_info's metadata are stripped.

OCaml

Innovation. Community. Security.