| 51 | } |
| 52 | |
| 53 | bool 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 | |
| 63 | bool HasWallets() |
| 64 | { |