| 73 | } |
| 74 | |
| 75 | std::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>. |
| 85 | static void ReleaseWallet(CWallet* wallet) |
no test coverage detected