Module Test_scenario.Queries

Run queries on running networks.

Get the current chain level for all the nodes, returns node-ID × level values.

Try-sleep-loop waiting for all given nodes to reach a given level.

val run_wait_level : Mavryk_protocol.t -> < application_name : Internal_pervasives.string ; console : Console.t ; paths : Paths.t ; runner : Running_processes.State.t.. > Internal_pervasives.Base_state.t -> Mavryk_node.t Flexmasa.Internal_pervasives.List.t -> [< `At_least of Internal_pervasives.int | `Equal_to of Internal_pervasives.int ] -> Internal_pervasives.int -> (Internal_pervasives.unit, [> `System_error of [ `Fatal ] * Internal_pervasives.System_error.static | `Waiting_for of Internal_pervasives.string * [ `Time_out ] ]) Internal_pervasives.Asynchronous_result.t

Runs wait_for_all_levels_to_be and provides ~seconds by querying the node for time_between_blocks.

wait until at least one block is baked on all nodes