/// Helper function to wait for all nodes to reach a condition
Helper function to wait for all nodes to reach a condition
Helper function to wait for all nodes to reach a condition
fn wait_for_all_nodes(
    libra_interfaces: &[JsonRpcLibraInterface],
    condition: impl Fn(&JsonRpcLibraInterface) -> bool,
) {
    for libra in libra_interfaces {
        while !condition(libra) {
            sleep(Duration::from_secs(1));
        }
    }
}
fn wait_for_all_nodes ( libra_interfaces : & [ JsonRpcLibraInterface ] , condition : impl Fn ( & JsonRpcLibraInterface ) -> bool , ) { for libra in libra_interfaces { while ! condition ( libra ) { sleep ( Duration :: from_secs ( 1 ) ) ; } } }
Helper function to wait for all nodes to reach a condition
Helper function to wait for all nodes to reach a condition
libra_interfaces
&[JsonRpcLibraInterface]
condition
impl Fn(&JsonRpcLibraInterface) -> bool