21 lines
840 B
OCaml
21 lines
840 B
OCaml
|
(**************************************************************************)
|
||
|
(* *)
|
||
|
(* Copyright (c) 2014 - 2017. *)
|
||
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
||
|
(* *)
|
||
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
||
|
(* *)
|
||
|
(**************************************************************************)
|
||
|
|
||
|
type t
|
||
|
|
||
|
val create:
|
||
|
?notify_new_block: (State.Block.t -> unit) ->
|
||
|
Block_validator.t ->
|
||
|
P2p.Peer_id.t -> Distributed_db.net_db ->
|
||
|
Block_locator.t -> t
|
||
|
|
||
|
val wait: t -> unit tzresult Lwt.t
|
||
|
|
||
|
val cancel: t -> unit Lwt.t
|