The new `getrpcinfo` shows a list of the active commands and the duration each command has been running. This sounds like a good place to report a completion percentage for any command doing a blockchain rescan, to solve [this problem](https://bitcoin.stackexchange.com/q/83236/90721).
{
    AssertLockHeld(cs_wallet);
    vCoins.clear();
    CAmount nTotal = 0;
    for (const auto& entry : mapWallet)
    {
        const uint256& wtxid = entry.first;
        const CWalletTx& wtx = entry.second;
        if (!locked_chain.checkFinalTx(*wtx.tx)) {
            continue;
        }
        if (wtx.IsImmatureCoinBase(locked_chain))
            continue;
        int nDepth = wtx.GetDepthInMainChain(locked_chain);
        if (nDepth < 0)
            continue;
        
        
        if (nDepth == 0 && !wtx.InMempool())
            continue;
        bool safeTx = wtx.IsTrusted(locked_chain);