fn is_in_era(era_id: EraId) -> impl Fn(&Nodes) -> bool {
    move |nodes: &Nodes| {
        nodes
            .values()
            .all(|runner| runner.participating().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_id: EraId) -> impl Fn(&Nodes) -> bool {
    move |nodes: &Nodes| {
        nodes
            .values()
            .all(|runner| runner.participating().consensus().current_era() == era_id)
    }
}
fn is_in_era ( era_id : EraId ) -> impl Fn ( & Nodes ) -> bool { move | nodes : & Nodes | { nodes . values ( ) . all ( | runner | runner . participating ( ) . 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_id
EraId
era_id
EraId