package tezos-shell

  1. Overview
  2. Docs
val current_head : chain_db -> ?mempool:Tezos_base.Mempool.t -> Tezos_store.Store.Block.t -> unit

current_head chain_db ?mempool head sends a Current_head (chain_id, head_header, mempool) message to all known active peers for this chain. If mempool isn't specified, or if remote peer has disabled its mempool, mempool is empty. chain_id is the identifier for this chain_db.

val current_branch : chain_db -> unit Lwt.t

current_branch chain_db sends a Current_branch (chain_id, locator) message to all known active peers for this chain. locator is constructed based on the seed (remote_peer_id, this_peer_id).

OCaml

Innovation. Community. Security.