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

Function AddWallet

src/wallet/wallet.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41static std::vector<std::shared_ptr<CWallet>> vpwallets GUARDED_BY(cs_wallets);
42
43bool AddWallet(const std::shared_ptr<CWallet>& wallet)
44{
45 LOCK(cs_wallets);
46 assert(wallet);
47 std::vector<std::shared_ptr<CWallet>>::const_iterator i = std::find(vpwallets.begin(), vpwallets.end(), wallet);
48 if (i != vpwallets.end()) return false;
49 vpwallets.push_back(wallet);
50 return true;
51}
52
53bool RemoveWallet(const std::shared_ptr<CWallet>& wallet)
54{

Callers 6

loadwalletFunction · 0.85
createwalletFunction · 0.85
OpenMethod · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
TestGUIFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by 3

BOOST_FIXTURE_TEST_CASEFunction · 0.68
TestGUIFunction · 0.68