Browse Source

Windows warning fix.

cl-refactor
Gav Wood 10 years ago
parent
commit
5d15c00aba
  1. 2
      libp2p/NodeTable.h

2
libp2p/NodeTable.h

@ -163,7 +163,7 @@ public:
std::list<NodeEntry> snapshot() const; std::list<NodeEntry> snapshot() const;
/// Returns true if node id is in node table. /// Returns true if node id is in node table.
bool haveNode(NodeId const& _id) { Guard l(x_nodes); return m_nodes.count(_id); } bool haveNode(NodeId const& _id) { Guard l(x_nodes); return m_nodes.count(_id) > 0; }
/// Returns the Node to the corresponding node id or the empty Node if that id is not found. /// Returns the Node to the corresponding node id or the empty Node if that id is not found.
Node node(NodeId const& _id); Node node(NodeId const& _id);

Loading…
Cancel
Save