package tezos-shell-services

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

Module Prevalidator_worker_state.Operation_encounteredSource

Indicates how an operation hash has been encountered:

  1. Injected : The corresponding operation has been directly injected into the node.
  2. Notified peer_id : The hash is present in a mempool advertised by peer_id.
  3. Arrived : The node was fetching and has just received the corresponding operation.

Other serves as default value for an argument, but in practice it is not used atm (June 2021).

This module is used in Event.Banned_operation_encountered.

Sourcetype situation =
  1. | Injected
  2. | Arrived
  3. | Notified of Tezos_base.P2p_peer_id.t option
  4. | Other
Sourcetype t = situation * Tezos_base__TzPervasives.Operation_hash.t
Sourceval encoding : t Tezos_base__TzPervasives.Data_encoding.t
Sourceval pp : Format.formatter -> t -> unit