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
    Header: Header,
    I: IntoIterator<Item = <Header as Header>::Number>,
    F: FnMut(P, <Header as Header>::Number, Vec<<Header as Header>::Number, Global>) -> Result<P, Error>, 
Expand description

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