https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
return context.s;
}
stdshared_ptr<CWallet> GetDefaultWallet(WalletContext& context, size_t& count)
{
    LOCK(context.s_mutex);
    count = context.s.size();
    return count == 1 ? context.s[0]  nullptr;
}
stdshared_ptr<CWallet> GetWallet(WalletContext& context, const stdstring& name)
{
    LOCK(context.s_mutex);
    for (const stdshared_ptr<CWallet>&   context.s) {
        if (->GetName() == name) return ;
    }
    return nullptr;
}
stdunique_ptr<interfacesHandler> HandleLoadWallet(WalletContext& context, LoadWalletFn load_)
{
    LOCK(context.s_mutex);
    auto it = context._load_fns.emplace(context._load_fns.end(), stdmove(load_));
    return interfacesMakeHandler([&context, it] { LOCK(context.s_mutex); context._load_fns.erase(it); });
}
void NotifyWalletLoaded(WalletContext& context, const stdshared_ptr<CWallet>& )
{
    LOCK(context.s_mutex);
    for (auto& load_  context._load_fns) {
        load_(interfacesMakeWallet(context, ));
    }
}
static GlobalMutex g_loading__mutex;