package tezos-dal-node-lib
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_published_slot_headers :
block_info ->
(slot_header * operation_application_result) list
Tezos_base.TzPervasives.tzresult
Lwt.t
val get_committee :
Tezos_rpc.Context.generic ->
level:int32 ->
int list Tezos_crypto.Signature.Public_key_hash.Map.t
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 its assigned shard indexes.
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.
val get_round :
Tezos_base.TzPervasives.Fitness.t ->
int32 Tezos_base.TzPervasives.tzresult
get_round fitness
returns the block round contained in fitness
.
val block_shell_header :
block_info ->
Tezos_base.TzPervasives.Block_header.shell_header
block_shell_header block_info
returns the shell header of the block whose information are given .
module Skip_list : sig ... end
module RPC : sig ... end