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

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