[][src]Function sc_client_api::cht::for_each_cht_group

pub fn for_each_cht_group<Header, I, F, P>(
    cht_size: Header::Number,
    blocks: I,
    mut functor: F,
    mut functor_param: P
) -> ClientResult<()> where
    Header: HeaderT,
    I: IntoIterator<Item = Header::Number>,
    F: FnMut(P, Header::Number, Vec<Header::Number>) -> ClientResult<P>, 

Group ordered blocks by CHT number and call functor with blocks of each group.