package tezos-shell-services

  1. Overview
  2. Docs
type block_received = {
  1. peer : Tezos_base.P2p_peer.Id.t;
  2. hash : Tezos_crypto.Block_hash.t;
}
type t =
  1. | Request of Request.view * Tezos_base.Worker_types.request_status * Tezos_error_monad.TzCore.error list option
  2. | Validating_new_branch of {
    1. peer : Tezos_base.P2p_peer.Id.t;
    2. nb_blocks : int;
    }
  3. | New_branch_validated of block_received
  4. | Fetching_operations_for_head of block_received
  5. | Requesting_new_head_validation of block_received
  6. | New_head_validation_end of block_received
  7. | Ignoring_head of block_received
  8. | Ignoring_previously_validated_block of block_received
  9. | Ignoring_prechecked_block of block_received
  10. | Ignoring_invalid_block of block_received
  11. | Missing_new_head_predecessor of block_received
  12. | Ignoring_branch_with_invalid_locator of block_received
  13. | Ignoring_branch_without_common_ancestor of block_received
  14. | No_new_head_from_peer of {
    1. peer : Tezos_base.P2p_peer.Id.t;
    2. timespan : float;
    }
  15. | Processing_new_head of block_received
  16. | Processing_new_branch of block_received
  17. | Terminating_worker of {
    1. peer : Tezos_base.P2p_peer.Id.t;
    2. reason : string;
    }
  18. | Ignoring_prechecked_invalid_block of block_received
type view = t
val view : t -> view
val encoding : t Data_encoding.encoding
val pp : Format.formatter -> t -> unit