Module Mavryk_shell.Chain_validator

type t
val chain_store : t -> Mavryk_store.Store.chain_store
val sync_status : t -> Synchronisation_heuristic.status
val bootstrapped : t -> unit Lwt.t

Wait for the `synchronisation_status` to be `Synchronised`. Subsequent calls return immediately. In other words, once a node is bootstrapped, it remains bootstrapped until it terminates (except if force_bootstrapped is used).

val is_bootstrapped : t -> bool
val force_bootstrapped : t -> bool -> unit Lwt.t
val prevalidator : t -> Prevalidator.t option
val chain_db : t -> Distributed_db.chain_db
val child : t -> t option
val shutdown : t -> unit Lwt.t
val valid_block_watcher : t -> Mavryk_store.Store.Block.t Lwt_stream.t * Lwt_watcher.stopper
val new_head_watcher : t -> (Mavryk_base.TzPervasives.Block_hash.t * Mavryk_base.Block_header.t) Lwt_stream.t * Lwt_watcher.stopper
val running_workers : unit -> (Mavryk_base.TzPervasives.Chain_id.t * t) list
val pending_requests_length : t -> int