package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

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.