MCPcopy Create free account
hub / github.com/ElementsProject/elements / UnloadWallets

Function UnloadWallets

src/wallet/load.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void UnloadWallets(WalletContext& context)
169{
170 auto wallets = GetWallets(context);
171 while (!wallets.empty()) {
172 auto wallet = wallets.back();
173 wallets.pop_back();
174 std::vector<bilingual_str> warnings;
175 RemoveWallet(context, wallet, /* load_on_start= */ std::nullopt, warnings);
176 UnloadWallet(std::move(wallet));
177 }
178}
179} // namespace wallet

Callers 1

~WalletLoaderImplMethod · 0.85

Calls 5

GetWalletsFunction · 0.85
RemoveWalletFunction · 0.85
UnloadWalletFunction · 0.85
emptyMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected