| 41 | static std::vector<std::shared_ptr<CWallet>> vpwallets GUARDED_BY(cs_wallets); |
| 42 | |
| 43 | bool 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 | |
| 53 | bool RemoveWallet(const std::shared_ptr<CWallet>& wallet) |
| 54 | { |