wallet::RemoveWallet

Remove a wallet from the wallet context and optionally update its load-on-startup setting.

Synopsis

Declared in <wallet/wallet.h>

bool
RemoveWallet(
    WalletContext& context,
    std::shared_ptr<CWallet> const& wallet,
    std::optional<bool> load_on_start,
    std::vector<bilingual_str>& warnings);

Return Value

true if the wallet was removed.

Parameters

NameDescription
contextThe wallet context to remove from.
walletThe wallet to remove.
load_on_startOptionally set whether the wallet loads on startup.
warningsWarnings produced while removing the wallet.