| 2838 | } |
| 2839 | |
| 2840 | bool CConnman::AddNode(const std::string& strNode) |
| 2841 | { |
| 2842 | LOCK(m_added_nodes_mutex); |
| 2843 | for (const std::string& it : m_added_nodes) { |
| 2844 | if (strNode == it) return false; |
| 2845 | } |
| 2846 | |
| 2847 | m_added_nodes.push_back(strNode); |
| 2848 | return true; |
| 2849 | } |
| 2850 | |
| 2851 | bool CConnman::RemoveAddedNode(const std::string& strNode) |
| 2852 | { |