fn is_in_era(era_num: u64) -> impl Fn(&Nodes<MultiStageTestReactor>) -> bool {
    move |nodes: &Nodes<MultiStageTestReactor>| {
        let era_id = EraId::from(era_num);
        nodes.values().all(|runner| {
            runner
                .reactor()
                .inner()
                .consensus()
                .map_or(false, |consensus| consensus.current_era() == era_id)
        })
    }
}
/// Given an era number, returns a predicate to check if all of the nodes are in the specified era.
Given an era number, returns a predicate to check if all of the nodes are in the specified era.
Given an era number returns a predicate to check if all of the nodes are in the specified era .
fn is_in_era(era_num: u64) -> impl Fn(&Nodes<MultiStageTestReactor>) -> bool {
    move |nodes: &Nodes<MultiStageTestReactor>| {
        let era_id = EraId::from(era_num);
        nodes.values().all(|runner| {
            runner
                .reactor()
                .inner()
                .consensus()
                .map_or(false, |consensus| consensus.current_era() == era_id)
        })
    }
}
fn is_in_era ( era_num : u64 ) -> impl Fn ( & Nodes < MultiStageTestReactor > ) -> bool { move | nodes : & Nodes < MultiStageTestReactor > | { let era_id = EraId :: from ( era_num ) ; nodes . values ( ) . all ( | runner | { runner . reactor ( ) . inner ( ) . consensus ( ) . map_or ( false , | consensus | consensus . current_era ( ) == era_id ) } ) } }
Given an era number, returns a predicate to check if all of the nodes are in the specified era.
Given an era number returns a predicate to check if all of the nodes are in the specified era .
era_num
u64
era_num
u64