https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
}
static void UpdateWalletSetting(interfacesChain& chain,
                                const stdstring& _name,
                                stdoptional<bool> load_on_startup,
                                stdvector<bilingual_str>& warnings)
{
    if (!load_on_startup) return;
    if (load_on_startup.value() && !AddWalletSetting(chain, _name)) {
        warnings.emplace_back(Untranslated("Wallet load on startup setting could not be updated, so  may not be loaded next node startup."));
    } else if (!load_on_startup.value() && !RemoveWalletSetting(chain, _name)) {
        warnings.emplace_back(Untranslated("Wallet load on startup setting could not be updated, so  may still be loaded next node startup."));
    }
}
/**
 * Refresh mempool status so th is in an internally consistent state and
 * immediately knows the transaction's status Whether it can be considered
 * trusted and is eligible to be abandoned ...
 */
static void RefreshMempoolStatus(CWalletTx& tx, interfacesChain& chain)
{
    if (chain.isInMempool(tx.GetHash())) {
        tx.m_state = TxStateInMempool();
    } else if (tx.state<TxStateInMempool>()) {
        tx.m_state = TxStateInactive();
    }
}
bool AddWallet(WalletContext& context, const stdshared_ptr<CWallet>& )
{
    LOCK(context.s_mutex);
    assert();