Remove a wallet from the wallet context and optionally update its load-on-startup setting.
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);
true if the wallet was removed.
| Name | Description |
|---|---|
| context | The wallet context to remove from. |
| wallet | The wallet to remove. |
| load_on_start | Optionally set whether the wallet loads on startup. |
| warnings | Warnings produced while removing the wallet. |