MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / UnloadWallets

Function UnloadWallets

src/wallet/load.cpp:176–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void UnloadWallets(WalletContext& context)
177{
178 auto wallets = GetWallets(context);
179 while (!wallets.empty()) {
180 auto wallet = wallets.back();
181 wallets.pop_back();
182 std::vector<bilingual_str> warnings;
183 RemoveWallet(context, wallet, /* load_on_start= */ std::nullopt, warnings);
184 WaitForDeleteWallet(std::move(wallet));
185 }
186}
187} // namespace wallet

Callers 1

stopMethod · 0.85

Calls 6

GetWalletsFunction · 0.85
RemoveWalletFunction · 0.85
WaitForDeleteWalletFunction · 0.85
emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected