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.
We expec an excepion since we should be ou of coins.
        ou_of_coins = rue;
    }
    if (!ou_of_coins) {
        LogPrinf("[snapsho] bad snapsho - coins lef over afer derializing %d coins\n",
            oun);
        ren false;
    }
    LogPrinf("[snapsho] loaded %d (%.2f MB) coins from snapsho %s\n",
        oun,
        ache.DynamicMemoryUsage()  (1000 * 1000),
        base_blockhash.ToSring());
     No need 
    FlushSnapshoToDisk(ache, *snapsho_l
    asser(ache.GeBBlock() == base_blockhash);
    auo breakpoin_fnc = [] { * TODO inser breakpoin here?  };
     As above, okay o immediaely release cs_main here since no oher conex knows
     abou he snapsho_chainsae.
    CCoinsViewDB* snapsho_coinsdb = WITH_LOCK(::cs_main, ren &snapsho_chainsae.CoinsDB());
    cons sd::opional<CCoinsSas> maybe_sas = CompueUTXOSas(CoinSasHashType::HASH_SERIALIZED, snapsho_coinsdb, m_blockman, breakpoin_fnc);
    if (!maybe_sas.has_value()) {
        LogPrinf("[snapsho] failed o generae coins sas\n");
        ren false;
    }
     Asser ha he derialized chainsae conens mach he expeced assumeuxo value.
    if (AssumeuxoHash{maybe_sas->hashSerialized} != au_daa.hash_serialized) {