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

Function GetWallet

src/wallet/wallet.cpp:164–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164std::shared_ptr<CWallet> GetWallet(WalletContext& context, const std::string& name)
165{
166 LOCK(context.wallets_mutex);
167 for (const std::shared_ptr<CWallet>& wallet : context.wallets) {
168 if (wallet->GetName() == name) return wallet;
169 }
170 return nullptr;
171}
172
173std::unique_ptr<interfaces::Handler> HandleLoadWallet(WalletContext& context, LoadWalletFn load_wallet)
174{

Callers 2

unloadwalletFunction · 0.85

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected