package octez-protocol-017-PtNairob-libs
Octez protocol 017-PtNairob libraries
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-protocol-017-PtNairob-libs.baking/Tezos_baking_017_PtNairob/Baking_state/index.html
Module Tezos_baking_017_PtNairob.Baking_state
Source
Source
type consensus_key = {
alias : string option;
public_key : Tezos_base.TzPervasives.Signature.public_key;
public_key_hash : Tezos_base.TzPervasives.Signature.public_key_hash;
secret_key_uri : Tezos_client_base.Client_keys.sk_uri;
}
Source
type consensus_key_and_delegate =
consensus_key * Tezos_base.TzPervasives.Signature.Public_key_hash.t
Source
val consensus_key_and_delegate_encoding :
consensus_key_and_delegate Tezos_base.TzPervasives.Data_encoding.t
Source
type prequorum = {
level : int32;
round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t;
block_payload_hash : Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t;
preendorsements : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.preendorsement Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list;
}
Source
type block_info = {
hash : Tezos_base.TzPervasives.Block_hash.t;
shell : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Block_header.shell_header;
payload_hash : Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t;
payload_round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t;
round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t;
prequorum : prequorum option;
quorum : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.endorsement Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list;
dal_attestations : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.dal_attestation Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list;
payload : Operation_pool.payload;
}
Source
type cache = {
known_timestamps : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Timestamp.time Baking_cache.Timestamp_of_round_cache.t;
round_timestamps : (Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Timestamp.time * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t * consensus_key_and_delegate) Baking_cache.Round_timestamp_interval_cache.t;
}
Source
type global_state = {
cctxt : Tezos_client_017_PtNairob.Protocol_client_context.full;
chain_id : Tezos_base.TzPervasives.Chain_id.t;
config : Baking_configuration.t;
constants : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Constants.t;
round_durations : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.round_durations;
operation_worker : Operation_worker.t;
validation_mode : validation_mode;
delegates : consensus_key list;
cache : cache;
dal_node_rpc_ctxt : Tezos_rpc.Context.generic option;
}
Source
val round_of_shell_header :
Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Block_header.shell_header ->
Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t
Tezos_base.TzPervasives.tzresult
Source
module SlotMap :
Tezos_base.TzPervasives.Map.S
with type key = Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t
Source
type delegate_slots = {
own_delegate_slots : (consensus_key_and_delegate * endorsing_slot) SlotMap.t;
all_delegate_slots : endorsing_slot SlotMap.t;
all_slots_by_round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t array;
}
Identify the first block of the protocol, ie. the block that activates the current protocol.
This block should be baked by the baker of the previous protocol (that's why this same block is also referred to as the last block of the previous protocol). It is always considered final and therefore is not endorsed.
Source
type locked_round = {
payload_hash : Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t;
round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t;
}
Source
type level_state = {
current_level : int32;
latest_proposal : proposal;
is_latest_proposal_applied : bool;
locked_round : locked_round option;
endorsable_payload : endorsable_payload option;
elected_block : elected_block option;
delegate_slots : delegate_slots;
next_level_delegate_slots : delegate_slots;
next_level_proposed_round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t option;
}
Source
type state = {
global_state : global_state;
level_state : level_state;
round_state : round_state;
}
Source
type event =
| New_valid_proposal of proposal
| New_head_proposal of proposal
| Prequorum_reached of Operation_worker.candidate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.preendorsement Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list
| Quorum_reached of Operation_worker.candidate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.endorsement Tezos_protocol_017_PtNairob.Protocol.Alpha_context.operation list
| Timeout of timeout_kind
Source
type state_data = {
level_data : int32;
locked_round_data : locked_round option;
endorsable_payload_data : endorsable_payload option;
}
Source
val may_record_new_state :
previous_state:t ->
new_state:t ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
Source
val load_endorsable_data :
Tezos_client_017_PtNairob.Protocol_client_context.full ->
[ `State ] Baking_files.location ->
state_data option Tezos_base.TzPervasives.tzresult Lwt.t
Source
val compute_delegate_slots :
Tezos_client_017_PtNairob.Protocol_client_context.full ->
?block:Tezos_shell_services.Block_services.block ->
level:int32 ->
chain:Tezos_shell_services.Shell_services.chain ->
consensus_key list ->
delegate_slots Tezos_base.TzPervasives.tzresult Lwt.t
Source
val pp_endorsing_slot :
Format.formatter ->
(consensus_key_and_delegate * endorsing_slot) ->
unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>