[][src]Function sc_service::client::light::fetcher::cht::block_to_cht_number

pub fn block_to_cht_number<N>(cht_size: N, block_num: N) -> Option<N> where
    N: AtLeast32Bit

Convert a block number to a CHT number. Returns None for block_num == 0, Some otherwise.