package tezos-shell

  1. Overview
  2. Docs

Tezos Shell - Network message for the gossip P2P protocol.

type t =
  1. | Get_current_branch of Tezos_crypto.Chain_id.t
  2. | Current_branch of Tezos_crypto.Chain_id.t * Tezos_base.Block_locator.t
  3. | Deactivate of Tezos_crypto.Chain_id.t
  4. | Get_current_head of Tezos_crypto.Chain_id.t
  5. | Current_head of Tezos_crypto.Chain_id.t * Tezos_base.Block_header.t * Tezos_base.Mempool.t
  6. | Get_block_headers of Tezos_crypto.Block_hash.t list
  7. | Block_header of Tezos_base.Block_header.t
  8. | Get_operations of Tezos_crypto.Operation_hash.t list
  9. | Operation of Tezos_base.Operation.t
  10. | Get_protocols of Tezos_crypto.Protocol_hash.t list
  11. | Protocol of Tezos_base.Protocol.t
  12. | Get_operations_for_blocks of (Tezos_crypto.Block_hash.t * int) list
  13. | Operations_for_block of Tezos_crypto.Block_hash.t * int * Tezos_base.Operation.t list * Tezos_crypto.Operation_list_list_hash.path
  14. | Get_checkpoint of Tezos_crypto.Chain_id.t
  15. | Checkpoint of Tezos_crypto.Chain_id.t * Tezos_base.Block_header.t
  16. | Get_protocol_branch of Tezos_crypto.Chain_id.t * int
  17. | Protocol_branch of Tezos_crypto.Chain_id.t * int * Tezos_base.Block_locator.t
  18. | Get_predecessor_header of Tezos_crypto.Block_hash.t * int32
  19. | Predecessor_header of Tezos_crypto.Block_hash.t * int32 * Tezos_base.Block_header.t

We must make sure that we are able to associate a response to the corresponding request. Thus, we are able to discrimate between expected responses from the unexpected ones.

val distributed_db_versions : Tezos_base.Distributed_db_version.t list
val pp_json : Stdlib.Format.formatter -> t -> unit
module Bounded_encoding : sig ... end
OCaml

Innovation. Community. Security.