Distributed_db.Request
val current_branch : chain_db -> Mavryk_base.P2p_peer.Id.t -> unit
current_branch chain_db peer
sends a Get_current_branch
chain_id
message to peer
. chain_id
is the identifier for chain_db
. Expected answer is a Current_branch
message.
val current_head_from_peer : chain_db -> Mavryk_base.P2p_peer.Id.t -> unit
current_head_from_peer chain_db peer
sends a Get_Current_head
chain_id
to a given peer. Expected answer is a Get_current_head
message.
val current_head_from_all : chain_db -> unit
current_head_from_all chain_db
sends a Get_Current_head
chain_id
message to all known active peers for this chain. chain_id
is the identifier for chain_db
. Expected answer is a Get_current_head
message