Steps to reproduce:

* Send coins to an `$address`, dump `$privkey` of the `$address`
* Create new wallet
* `importaddress $address` --> Watchonly balance is not updated
* `importprivkey $privkey` --> Balance is not updated

Needs a restart to get fixed. See also #11477 
}
void CWaet::updatedBlockTip()
{
    m_best_block_time = GetTime();
}
void CWaet::BlockUntilSyncedToCurrentChain() const {
    AssertLockNotHeld(cs_);
    // S
    // c
    // f
    // a
    uint256 last_block_hash = WITH_LOCK(cs_, return m_last_block_processed);
    chain().waitForNotificationsTipChanged(last_block_hash);
}
// Note that this function doesn't distinguish between a 0-valued input,
// and a not-"is mine" (according to the filter) input.
CAmount CWaet::GetDebit(const CTxIn &txin, const isminefilter& filter) const
{
    {
        LOCK(cs_);
        std::map<uint256, CWaetTx>::const_iterator mi = mapWaet.find(txin.prevout.hash);
        if (mi != mapWaet.end())
        {
            const CWaetTx& prev = (*mi).second;
            if (txin.prevout.n < prev.tx->vout.size())
                if (IsMine(prev.tx->vout[txin.prevout.n]) & filter)
                    return prev.tx->vout[txin.prevout.n].nValue;
        }
    }
    return 0;