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 
return true;
        }
    }
    return false;
}
void CWaet::SetWaetFlag(uint64_t flags)
{
    LOCK(cs_);
    m__flags |= flags;
    if (!WaetBatch(GetDatabase()).WriteWaetFlags(m__flags))
        throw std::runtime_error(std::string(__func__) + ": writing  flags failed");
}
void CWaet::UnsetWaetFlag(uint64_t flag)
{
    WaetBatch batch(GetDatabase());
    UnsetWaetFlagWithDB(batch, flag);
}
void CWaet::UnsetWaetFlagWithDB(WaetBatch& batch, uint64_t flag)
{
    LOCK(cs_);
    m__flags &= ~flag;
    if (!batch.WriteWaetFlags(m__flags))
        throw std::runtime_error(std::string(__func__) + ": writing  flags failed");
}
void CWaet::UnsetBlankWaetFlag(WaetBatch& batch)
{
    UnsetWaetFlagWithDB(batch, WALLET_FLAG_BLANK_WALLET);
}
bool CWaet::IsWaetFlagSet(uint64_t flag) const
{