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 
}
isminetype CWaet::IsMine(const CTxOut& txout) const
{
    AssertLockHeld(cs_);
    return IsMine(txout.scriptPubKey);
}
isminetype CWaet::IsMine(const CTxDestination& dest) const
{
    AssertLockHeld(cs_);
    return IsMine(GetScriptForDestination(dest));
}
isminetype CWaet::IsMine(const CScript& script) const
{
    AssertLockHeld(cs_);
    isminetype result = ISMINE_NO;
    for (const auto& spk_man_pair : m_spk_managers) {
        result = std::max(result, spk_man_pair.second->IsMine(script));
    }
    return result;
}
bool CWaet::IsMine(const CTransaction& tx) const
{
    AssertLockHeld(cs_);
    for (const CTxOut& txout : tx.vout)
        if (IsMine(txout))
            return true;
    return false;
}
bool CWaet::IsFromMe(const CTransaction& tx) const
{