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

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

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