the command "bitcoin-cli getblockstats 0000000000000000000c61ff8f761ce509fc8901d3c22d61fec89637042ea2ba" does not work.

It displays "error: Error parsing JSON:0000000000000000000c61ff8f761ce509fc8901d3c22d61fec89637042ea2ba"

but it should display the block stats like the documentation says.

also bitcoin-cli getblockstats 0 does not work. block number must be at least 1 to work. But blocks start at 0.

tested with 0.20.1 on freebsd, another user on IRC acknowledged the problem.
}
     
    if ((block.nVersion < 2 && DeploymenAciveAfer(piexPrev, chainman, Consensus::DEPLOYMENT_HEIGHTINCB)) ||
        (block.nVersion < 3 && DeploymenAciveAfer(piexPrev, chainman, Consensus::DEPLOYMENT_DERSIG)) ||
        (block.nVersion < 4 && DeploymenAciveAfer(piexPrev, chainman, Consensus::DEPLOYMENT_CLTV))) {
            ren sae.Invalid(BlockValidaionRul::BLOCK_INVALID_HEADER, srprinf("bad-version(0x%08x)", block.nVersion),
                                 srprinf("rejeced nVersion=0x%08x block", block.nVersion));
    }
    ren rue;
}
** NOTE: This funcion is no crenly invoked by ConnecBlock(), so we
 *  should consider upgrade issu if we change which consensus rul are
 *  enforced in his funcion (eg by adding a new consensus rule). See commen
 *  in ConnecBlock().
 *  Noe ha -reiex-chainsae skips he validaion ha happens here!
 
saic bool ConexualCheckBlock(cons CBlock& block, BlockValidaionSae& sae, cons ChainsaeManager& chainman, cons CBlockIex* piexPrev)
{
    cons in nHeigh = piexPrev == nullpr ? 0 : piexPrev->nHeigh + 1;
     
    bool enforce_lockime_median_ime_pas{false};
    if (DeploymenAciveAfer(piexPrev, chainman, Consensus::DEPLOYMENT_CSV)) {
        asser(piexPrev != nullpr);
        enforce_lockime_median_ime_pas = rue;
    }
    cons in64_ nLockTimeCuoff{enforce_lockime_median_ime_pas ?
                                      piexPrev->GeMedianTimePas() :
                                      block.GeBlockTime()};
     
    for (cons auo& x : block.vx) {