package octez-protocol-017-PtNairob-libs

  1. Overview
  2. Docs
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_actions/index.html

Module Tezos_baking_017_PtNairob.Baking_actionsSource

Sourcetype block_kind =
  1. | Fresh of Operation_pool.pool
  2. | Reproposal of {
    1. consensus_operations : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.packed_operation list;
    2. payload_hash : Tezos_protocol_017_PtNairob.Protocol.Block_payload_hash.t;
    3. payload_round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t;
    4. payload : Operation_pool.payload;
    }
Sourcetype block_to_bake = {
  1. predecessor : Baking_state.block_info;
  2. round : Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t;
  3. delegate : Baking_state.consensus_key_and_delegate;
  4. kind : block_kind;
  5. 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-apply flag (see force_apply_switch_arg in baking_commands.ml).

    *)
}
Sourcetype action =
  1. | Do_nothing
  2. | Inject_block of {
    1. block_to_bake : block_to_bake;
    2. updated_state : Baking_state.state;
    }
  3. | Inject_preendorsements of {
    1. preendorsements : (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.consensus_content) list;
    }
  4. | Inject_endorsements of {
    1. endorsements : (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.consensus_content) list;
    }
  5. | Update_to_level of level_update
  6. | Synchronize_round of round_update
  7. | Watch_proposal
Sourceand level_update = {
  1. new_level_proposal : Baking_state.proposal;
  2. compute_new_state : current_round: Tezos_protocol_017_PtNairob.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;
}
Sourceand round_update = {
  1. new_round_proposal : Baking_state.proposal;
  2. handle_proposal : Baking_state.state -> (Baking_state.state * action) Lwt.t;
}
Sourcetype t = action
Sourceval generate_seed_nonce_hash : Baking_configuration.nonce_config -> Baking_state.consensus_key -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Level.t -> (Tezos_protocol_017_PtNairob.Protocol.Nonce_hash.t * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Nonce.t) option Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval sign_consensus_votes : Baking_state.state -> (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.consensus_content) list -> [ `Preendorsement | `Endorsement ] -> ((Baking_state.consensus_key * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash) * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.packed_operation * int32 * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t) list Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval inject_consensus_vote : Baking_state.state -> (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.consensus_content) list -> [ `Preendorsement | `Endorsement ] -> unit Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval sign_dal_attestations : Baking_state.state -> (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Dal.Attestation.operation) list -> (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.packed_operation * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Dal.Attestation.t) list Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval get_dal_attestations : Baking_state.state -> level:Int32.t -> (Baking_state.consensus_key_and_delegate * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Dal.Attestation.operation) list Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval prepare_waiting_for_quorum : Baking_state.state -> int * (slot:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Slot.t -> int option) * Operation_worker.candidate
Sourceval start_waiting_for_preendorsement_quorum : Baking_state.state -> unit Lwt.t
Sourceval start_waiting_for_endorsement_quorum : Baking_state.state -> unit Lwt.t
Sourceval pp_action : Format.formatter -> t -> unit
Sourceval compute_round : Baking_state.proposal -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.round_durations -> Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Round.t Tezos_base.TzPervasives.tzresult
OCaml

Innovation. Community. Security.