package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-libs.tezos-p2p-services/Tezos_p2p_services/Peer_metadata/index.html

Module Tezos_p2p_services.Peer_metadataSource

All the (persistent) metadata associated to a peer.

Sourcetype t
Sourceval encoding : t Tezos_base.TzPervasives.Data_encoding.t
Sourceval empty : unit -> t
Sourceval distributed_db_score : t -> float

the aggregate score function computed from the metadata collected for a peer

Sourceval prevalidation_score : t -> float
Sourceval score : t -> float
Sourcetype requests_kind =
  1. | Branch
  2. | Head
  3. | Block_header
  4. | Operations
  5. | Protocols
  6. | Operation_hashes_for_block
  7. | Operations_for_block
  8. | Checkpoint
  9. | Protocol_branch
  10. | Predecessor_header
  11. | Other
Sourcetype resource_kind =
  1. | Block
  2. | Operations
  3. | Protocol
Sourcetype advertisement =
  1. | Head
  2. | Branch
Sourcetype metadata =
  1. | Received_request of requests_kind
  2. | Sent_request of requests_kind
  3. | Failed_request of requests_kind
  4. | Scheduled_request of requests_kind
  5. | Received_response of requests_kind
  6. | Sent_response of requests_kind
  7. | Unexpected_response
  8. | Unactivated_chain
  9. | Inactive_chain
  10. | Future_block
  11. | Unadvertised of resource_kind
  12. | Sent_advertisement of advertisement
  13. | Received_advertisement of advertisement
  14. | Outdated_response
  15. | Valid_blocks
  16. | Old_heads
  17. | Cannot_download
  18. | Cannot_parse
  19. | Refused_by_prefilter
  20. | Refused_by_postfilter
  21. | Applied
  22. | Branch_delayed
  23. | Branch_refused
  24. | Refused
  25. | Duplicate
  26. | Outdated
Sourceval incr : t -> metadata -> unit

incr score counters . Used to compute the final score for a peer

Sourceval update_requests : t -> requests_kind -> bool -> unit
Sourceval update_responses : t -> requests_kind -> bool -> unit
OCaml

Innovation. Community. Security.