package tezos-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type shell_header = {
  1. level : Int32.t;
    (*

    Height of the block, from the genesis block.

    *)
  2. proto_level : int;
    (*

    Number of protocol changes since genesis modulo 256.

    *)
  3. predecessor : Tezos_crypto.Block_hash.t;
    (*

    Hash of the preceding block.

    *)
  4. timestamp : Time.Protocol.t;
    (*

    Timestamp at which the block is claimed to have been created.

    *)
  5. validation_passes : int;
    (*

    Number of validation passes (also number of lists of operations).

    *)
  6. operations_hash : Tezos_crypto.Operation_list_list_hash.t;
    (*

    Hash of the list of lists (actually root hashes of merkle trees) of operations included in the block. There is one list of operations per validation pass.

    *)
  7. fitness : Fitness.t;
    (*

    A sequence of sequences of unsigned bytes, ordered by length and then lexicographically. It represents the claimed fitness of the chain ending in this block.

    *)
  8. context : Tezos_crypto.Context_hash.t;
    (*

    Hash of the state of the context after application of this block.

    *)
}
val shell_header_encoding : shell_header Data_encoding.t
type t = {
  1. shell : shell_header;
  2. protocol_data : Bytes.t;
}
include S.HASHABLE with type t := t and type hash := Tezos_crypto.Block_hash.t
include S.T with type t := t
include Tezos_stdlib.Compare.S with type t := t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val pp : Format.formatter -> t -> unit
val encoding : t Data_encoding.t
val to_bytes : t -> Bytes.t
val of_bytes : Bytes.t -> t option
val of_bytes_exn : Bytes.t -> t
val to_b58check : t -> string
val of_b58check : string -> t option
val bounded_encoding : ?max_size:int -> unit -> t Data_encoding.t
val get_forced_protocol_upgrade : user_activated_upgrades:User_activated.upgrades -> level:Int32.t -> Tezos_crypto.Protocol_hash.t option
val get_voted_protocol_overrides : user_activated_protocol_overrides:User_activated.protocol_overrides -> Tezos_crypto.Protocol_hash.t -> Tezos_crypto.Protocol_hash.t option
OCaml

Innovation. Community. Security.