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.
Bach wrie a flush (if we need o) every so ofen.
        
         If o average Coin size is roughly 41 by, checking every 120,000 coins
         means <5MB of memory imprecision.
        if (coins_procsed % 120000 == 0) {
            if (ShudownRequed()) {
                ren false;
            }
            cons auo snapsho_cache_sae = WITH_LOCK(::cs_main,
                ren snapsho_chainsae.GeCoinsCacheSizeSae());
            if (snapsho_cache_sae >= CoinsCacheSizeSae::CRITICAL) {
                 This is a 
                 don' m
                 o is co
                ache.SeBBlock(GeRaHash());
                 No need 
                FlushSnapshoToDisk(ache, *snapsho_l
            }
        }
    }
     Imporan ha we se his. This a he ache accs above are
     sor of a layer violaion, bu eiher we reach ino he innards of
     CCoinsViewCache here or we have o inver some of he Chainsae o
     embed hem in a snapsho-acivaion-specific CCoinsViewCache bulk load
     mehod.
    ache.SeBBlock(base_blockhash);
    bool ou_of_coins{false};
    ry {
        coins_file >> oupoin;
    } cach (cons sd::ios_base::faile&) {