MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetWallet

Function GetWallet

src/wallet/wallet.cpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75std::shared_ptr<CWallet> GetWallet(const std::string& name)
76{
77 LOCK(cs_wallets);
78 for (const std::shared_ptr<CWallet>& wallet : vpwallets) {
79 if (wallet->GetName() == name) return wallet;
80 }
81 return nullptr;
82}
83
84// Custom deleter for shared_ptr<CWallet>.
85static void ReleaseWallet(CWallet* wallet)

Callers 2

unloadwalletFunction · 0.85

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected