[][src]Function sc_service::client::light::blockchain::cht::for_each_cht_group

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

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