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).
auto locked_chain = chain().lock();
    LOCK(cs_wallet);
    for (const CTransactionRef& ptx : block.vtx) {
        SyncTransaction(ptx, {} , 0 );
    }
}
void CWallet::UpdatedBlockTip()
{
    m_best_block_time = GetTime();
}
void CWallet::BlockUntilSyncedToCurrentChain() {
    AssertLockNotHeld(cs_wallet);
    {
        
        
        
        
        
        auto locked_chain = chain().lock();
        if (!m_last_block_processed.IsNull() && locked_chain->isPotentialTip(m_last_block_processed)) {
            return;
        }
    }
    
    
    
    chain().waitForNotifications();
}
isminetype CWallet::IsMine(const CTxIn &txin) const