package octez-protocol-alpha-libs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Octez protocol alpha libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-protocol-alpha-libs.baking/Tezos_baking_alpha/Baking_actions/index.html
Module Tezos_baking_alpha.Baking_actionsSource
Source
type block_kind = | Fresh of Operation_pool.pool| Reproposal of {consensus_operations : Tezos_protocol_alpha.Protocol.Alpha_context.packed_operation list;payload_hash : Tezos_protocol_alpha.Protocol.Block_payload_hash.t;payload_round : Tezos_protocol_alpha.Protocol.Alpha_context.Round.t;payload : Operation_pool.payload;
}
Source
type block_to_bake = {predecessor : Baking_state.block_info;round : Tezos_protocol_alpha.Protocol.Alpha_context.Round.t;delegate : Baking_state.consensus_key_and_delegate;kind : block_kind;force_apply : bool;(*if true, while baking the block, try and apply the block and its operations instead of only validating them. this can be permanently set using the
*)--force-applyflag (seeforce_apply_switch_arginbaking_commands.ml).
}Source
type action = | Do_nothing| Inject_block of {block_to_bake : block_to_bake;updated_state : Baking_state.state;
}| Inject_preattestations of {preattestations : (Baking_state.consensus_key_and_delegate * Tezos_protocol_alpha.Protocol.Alpha_context.consensus_content) list;
}| Inject_attestations of {attestations : (Baking_state.consensus_key_and_delegate * Tezos_protocol_alpha.Protocol.Alpha_context.consensus_content) list;
}| Update_to_level of level_update| Synchronize_round of round_update| Watch_proposal
Source
and level_update = {new_level_proposal : Baking_state.proposal;compute_new_state : current_round: Tezos_protocol_alpha.Protocol.Alpha_context.Round.t -> delegate_slots:Baking_state.delegate_slots -> next_level_delegate_slots:Baking_state.delegate_slots -> (Baking_state.state * action) Lwt.t;
}Source
and round_update = {new_round_proposal : Baking_state.proposal;handle_proposal : Baking_state.state -> (Baking_state.state * action) Lwt.t;
}Source
val generate_seed_nonce_hash :
Baking_configuration.nonce_config ->
Baking_state.consensus_key ->
Tezos_protocol_alpha.Protocol.Alpha_context.Level.t ->
(Tezos_protocol_alpha.Protocol.Nonce_hash.t
* Tezos_protocol_alpha.Protocol.Alpha_context.Nonce.t)
option
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val inject_block :
state_recorder:
(new_state:Baking_state.state ->
unit Tezos_base.TzPervasives.tzresult Lwt.t) ->
Baking_state.state ->
block_to_bake ->
updated_state:Baking_state.state ->
Baking_state.state Tezos_base.TzPervasives.tzresult Lwt.tSource
val sign_consensus_votes :
Baking_state.state ->
(Baking_state.consensus_key_and_delegate
* Tezos_protocol_alpha.Protocol.Alpha_context.consensus_content)
list ->
[ `Preattestation | `Attestation ] ->
((Baking_state.consensus_key
* Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash)
* Tezos_protocol_alpha.Protocol.Alpha_context.packed_operation
* int32
* Tezos_protocol_alpha.Protocol.Alpha_context.Round.t)
list
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val inject_consensus_vote :
Baking_state.state ->
(Baking_state.consensus_key_and_delegate
* Tezos_protocol_alpha.Protocol.Alpha_context.consensus_content)
list ->
[ `Preattestation | `Attestation ] ->
unit Tezos_base.TzPervasives.tzresult Lwt.tSource
val sign_dal_attestations :
Baking_state.state ->
(Baking_state.consensus_key_and_delegate
* Tezos_protocol_alpha.Protocol.Alpha_context.Dal.Attestation.operation
* int32)
list ->
(Baking_state.consensus_key_and_delegate
* Tezos_protocol_alpha.Protocol.Alpha_context.packed_operation
* Tezos_protocol_alpha.Protocol.Alpha_context.Dal.Attestation.t
* int32)
list
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val get_dal_attestations :
Baking_state.state ->
(Baking_state.consensus_key_and_delegate
* Tezos_protocol_alpha.Protocol.Alpha_context.Dal.Attestation.operation
* int32)
list
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val prepare_waiting_for_quorum :
Baking_state.state ->
int
* (slot:Tezos_protocol_alpha.Protocol.Alpha_context.Slot.t ->
int option)
* Operation_worker.candidateSource
val update_to_level :
Baking_state.state ->
level_update ->
(Baking_state.state * t) Tezos_base.TzPervasives.tzresult Lwt.tSource
val compute_round :
Baking_state.proposal ->
Tezos_protocol_alpha.Protocol.Alpha_context.Round.round_durations ->
Tezos_protocol_alpha.Protocol.Alpha_context.Round.t
Tezos_base.TzPervasives.tzresultSource
val perform_action :
state_recorder:
(new_state:Baking_state.state ->
unit Tezos_base.TzPervasives.tzresult Lwt.t) ->
Baking_state.state ->
t ->
Baking_state.state Tezos_base.TzPervasives.tzresult Lwt.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>