package tezos-baking-015-PtLimaPt

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tezos_baking_015_PtLimaPt.Baking_stateSource

Sourcetype consensus_key = {
  1. alias : string option;
  2. public_key : Tezos_crypto.Signature.V0.public_key;
  3. public_key_hash : Tezos_crypto.Signature.V0.public_key_hash;
  4. secret_key_uri : Tezos_client_base.Client_keys_v0.sk_uri;
}
Sourceval consensus_key_encoding : consensus_key Tezos_base.TzPervasives.Data_encoding.t
Sourceval pp_consensus_key : Format.formatter -> consensus_key -> unit
Sourcetype consensus_key_and_delegate = consensus_key * Tezos_crypto.Signature.V0.Public_key_hash.t
Sourceval consensus_key_and_delegate_encoding : consensus_key_and_delegate Tezos_base.TzPervasives.Data_encoding.t
Sourceval pp_consensus_key_and_delegate : Format.formatter -> consensus_key_and_delegate -> unit
Sourcetype validation_mode =
  1. | Node
  2. | Local of Abstract_context_index.t
Sourcetype prequorum = {
  1. level : int32;
  2. round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
  3. block_payload_hash : Tezos_protocol_015_PtLimaPt.Protocol.Block_payload_hash.t;
  4. preendorsements : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Kind.preendorsement Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.operation list;
}
Sourcetype block_info = {
  1. hash : Tezos_base.TzPervasives.Block_hash.t;
  2. shell : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Block_header.shell_header;
  3. payload_hash : Tezos_protocol_015_PtLimaPt.Protocol.Block_payload_hash.t;
  4. payload_round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
  5. round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
  6. protocol : Tezos_base.TzPervasives.Protocol_hash.t;
  7. next_protocol : Tezos_base.TzPervasives.Protocol_hash.t;
  8. prequorum : prequorum option;
  9. quorum : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Kind.endorsement Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.operation list;
  10. payload : Operation_pool.payload;
  11. live_blocks : Tezos_base.TzPervasives.Block_hash.Set.t;
    (*

    Set of live blocks for this block that is used to filter old or too recent operations.

    *)
}
Sourcetype cache = {
  1. known_timestamps : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Timestamp.time Baking_cache.Timestamp_of_round_cache.t;
  2. round_timestamps : (Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Timestamp.time * Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t * consensus_key_and_delegate) Baking_cache.Round_timestamp_interval_cache.t;
}
Sourcetype global_state = {
  1. cctxt : Tezos_client_015_PtLimaPt.Protocol_client_context.full;
  2. chain_id : Tezos_base.TzPervasives.Chain_id.t;
  3. config : Baking_configuration.t;
  4. constants : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Constants.t;
  5. round_durations : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.round_durations;
  6. operation_worker : Operation_worker.t;
  7. validation_mode : validation_mode;
  8. delegates : consensus_key list;
  9. cache : cache;
}
Sourceval block_info_encoding : block_info Tezos_base.TzPervasives.Data_encoding.t
Sourceval round_of_shell_header : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Block_header.shell_header -> Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t Tezos_base.TzPervasives.tzresult
Sourcemodule SlotMap : Tezos_base.TzPervasives.Map.S with type key = Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Slot.t
Sourcetype endorsing_slot = {
  1. slots : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Slot.t list;
  2. endorsing_power : int;
}
Sourcetype delegate_slots = {
  1. own_delegate_slots : (consensus_key_and_delegate * endorsing_slot) SlotMap.t;
  2. all_delegate_slots : endorsing_slot SlotMap.t;
  3. all_slots_by_round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Slot.t array;
}
Sourcetype proposal = {
  1. block : block_info;
  2. predecessor : block_info;
}
Sourceval proposal_encoding : proposal Tezos_base.TzPervasives.Data_encoding.t
Sourcetype locked_round = {
  1. payload_hash : Tezos_protocol_015_PtLimaPt.Protocol.Block_payload_hash.t;
  2. round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
}
Sourceval locked_round_encoding : locked_round Tezos_base.TzPervasives.Data_encoding.t
Sourcetype endorsable_payload = {
  1. proposal : proposal;
  2. prequorum : prequorum;
}
Sourceval endorsable_payload_encoding : endorsable_payload Tezos_base.TzPervasives.Data_encoding.t
Sourcetype elected_block = {
  1. proposal : proposal;
  2. endorsement_qc : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Kind.endorsement Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.operation list;
}
Sourcetype level_state = {
  1. current_level : int32;
  2. latest_proposal : proposal;
  3. locked_round : locked_round option;
  4. endorsable_payload : endorsable_payload option;
  5. elected_block : elected_block option;
  6. delegate_slots : delegate_slots;
  7. next_level_delegate_slots : delegate_slots;
  8. next_level_proposed_round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t option;
}
Sourcetype phase =
  1. | Idle
  2. | Awaiting_preendorsements
  3. | Awaiting_endorsements
Sourceval phase_encoding : phase Tezos_base.TzPervasives.Data_encoding.t
Sourcetype round_state = {
  1. current_round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
  2. current_phase : phase;
}
Sourcetype state = {
  1. global_state : global_state;
  2. level_state : level_state;
  3. round_state : round_state;
}
Sourcetype t = state
Sourcetype timeout_kind =
  1. | End_of_round of {
    1. ending_round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
    }
  2. | Time_to_bake_next_level of {
    1. at_round : Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Round.t;
    }
Sourceval timeout_kind_encoding : timeout_kind Tezos_base.TzPervasives.Data_encoding.t
Sourcetype voting_power = int
Sourcetype event =
  1. | New_proposal of proposal
  2. | Prequorum_reached of Operation_worker.candidate * voting_power * Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Kind.preendorsement Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.operation list
  3. | Quorum_reached of Operation_worker.candidate * voting_power * Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.Kind.endorsement Tezos_protocol_015_PtLimaPt.Protocol.Alpha_context.operation list
  4. | Timeout of timeout_kind
Sourceval event_encoding : event Tezos_base.TzPervasives.Data_encoding.t
Sourcetype state_data = {
  1. level_data : int32;
  2. locked_round_data : locked_round option;
  3. endorsable_payload_data : endorsable_payload option;
}
Sourceval state_data_encoding : state_data Tezos_base.TzPervasives.Data_encoding.t
Sourceval record_state : t -> unit Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval may_record_new_state : previous_state:t -> new_state:t -> unit Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval may_load_endorsable_data : t -> t Tezos_base.TzPervasives.tzresult Lwt.t
Sourceval create_cache : unit -> cache
Sourceval pp_validation_mode : Format.formatter -> validation_mode -> unit
Sourceval pp_global_state : Format.formatter -> global_state -> unit
Sourceval pp_option : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a option -> unit
Sourceval pp_block_info : Format.formatter -> block_info -> unit
Sourceval pp_proposal : Format.formatter -> proposal -> unit
Sourceval pp_locked_round : Format.formatter -> locked_round -> unit
Sourceval pp_endorsable_payload : Format.formatter -> endorsable_payload -> unit
Sourceval pp_elected_block : Format.formatter -> elected_block -> unit
Sourceval pp_delegate_slots : Format.formatter -> delegate_slots -> unit
Sourceval pp_level_state : Format.formatter -> level_state -> unit
Sourceval pp_phase : Format.formatter -> phase -> unit
Sourceval pp_round_state : Format.formatter -> round_state -> unit
Sourceval pp : Format.formatter -> t -> unit
Sourceval pp_timeout_kind : Format.formatter -> timeout_kind -> unit
Sourceval pp_event : Format.formatter -> event -> unit
OCaml

Innovation. Community. Security.