pub fn next_sync_block(
    pindex_prev: *const BlockIndex,
    chain: &mut Chain
) -> *const BlockIndex