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

Function RemoveWallet

src/wallet/wallet.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool RemoveWallet(const std::shared_ptr<CWallet>& wallet)
54{
55 LOCK(cs_wallets);
56 assert(wallet);
57 std::vector<std::shared_ptr<CWallet>>::iterator i = std::find(vpwallets.begin(), vpwallets.end(), wallet);
58 if (i == vpwallets.end()) return false;
59 vpwallets.erase(i);
60 return true;
61}
62
63bool HasWallets()
64{

Callers 5

unloadwalletFunction · 0.85
CloseMethod · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
TestGUIFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 3

BOOST_FIXTURE_TEST_CASEFunction · 0.68
TestGUIFunction · 0.68