Function sc_light::fetcher::cht::block_to_cht_number[][src]

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.