package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.1.tar.gz
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053

doc/octez-shell-libs.shell/Tezos_shell/Synchronisation_heuristic/Core/index.html

Module Synchronisation_heuristic.CoreSource

Core

This module is Lwt agnostic and implements all the logic behind the synchronisation heuristic.

Sourcetype t

Internal state of the bootstrap_heuristic

Sourceval create : threshold:int -> latency:int -> t

create ~threshold ~latency () initializes the heuristic with these two parameters

update t (timestamp, peer) updates t according to the heuristic above. The timestamp should come from a valid block, and the peer should be the one who sent the block.

Sourceval get_status : t -> status

get_status t is the current status according of the bootstrap heuristic described above.

OCaml

Innovation. Community. Security.