pub fn get_next_work_required(
    pindex_last: Arc<BlockIndex>,
    pblock: Arc<BlockHeader>,
    params: &ChainConsensusParams
) -> u32