2017-02-24 17:17:53 +01:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2017-11-14 00:36:14 +01:00
|
|
|
(* Copyright (c) 2014 - 2017. *)
|
2017-02-24 17:17:53 +01:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-11-13 19:06:30 +01:00
|
|
|
(** Tezos Shell - Network message for the gossip P2P protocol. *)
|
|
|
|
|
2017-02-24 17:17:53 +01:00
|
|
|
type t =
|
|
|
|
|
|
|
|
| Get_current_branch of Net_id.t
|
2017-09-29 18:43:13 +02:00
|
|
|
| Current_branch of Net_id.t * Block_locator.t
|
2017-02-24 17:17:53 +01:00
|
|
|
| Deactivate of Net_id.t
|
|
|
|
|
|
|
|
| Get_current_head of Net_id.t
|
2017-11-13 14:33:39 +01:00
|
|
|
| Current_head of Net_id.t * Block_header.t * Mempool.t
|
2017-02-24 17:17:53 +01:00
|
|
|
|
2017-11-14 03:52:26 +01:00
|
|
|
| Get_block_headers of Block_hash.t list
|
2017-04-19 19:21:23 +02:00
|
|
|
| Block_header of Block_header.t
|
2017-02-24 17:17:53 +01:00
|
|
|
|
2017-11-14 03:52:26 +01:00
|
|
|
| Get_operations of Operation_hash.t list
|
2017-04-19 19:21:23 +02:00
|
|
|
| Operation of Operation.t
|
2017-02-24 17:17:53 +01:00
|
|
|
|
|
|
|
| Get_protocols of Protocol_hash.t list
|
2017-04-19 19:21:23 +02:00
|
|
|
| Protocol of Protocol.t
|
2017-02-24 17:17:53 +01:00
|
|
|
|
2017-11-14 03:52:26 +01:00
|
|
|
| Get_operation_hashes_for_blocks of (Block_hash.t * int) list
|
2017-04-19 21:46:10 +02:00
|
|
|
| Operation_hashes_for_block of
|
2017-11-14 03:52:26 +01:00
|
|
|
Block_hash.t * int *
|
2017-04-19 21:46:10 +02:00
|
|
|
Operation_hash.t list * Operation_list_list_hash.path
|
|
|
|
|
2017-11-14 03:52:26 +01:00
|
|
|
| Get_operations_for_blocks of (Block_hash.t * int) list
|
2017-04-19 21:46:10 +02:00
|
|
|
| Operations_for_block of
|
2017-11-14 03:52:26 +01:00
|
|
|
Block_hash.t * int *
|
2017-04-19 21:46:10 +02:00
|
|
|
Operation.t list * Operation_list_list_hash.path
|
2017-03-30 13:16:21 +02:00
|
|
|
|
2017-02-24 17:17:53 +01:00
|
|
|
val cfg : t P2p.message_config
|
|
|
|
|
|
|
|
val pp_json : Format.formatter -> t -> unit
|