Browse Source

Windows warning fix.

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

4
libp2p/NodeTable.h

@ -163,7 +163,7 @@ public:
std::list<NodeEntry> snapshot() const;
/// 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.
Node node(NodeId const& _id);
@ -418,4 +418,4 @@ struct NodeTableEgress: public LogChannel { static const char* name() { return "
struct NodeTableIngress: public LogChannel { static const char* name() { return "<<P"; } static const int verbosity = 15; };
}
}
}

Loading…
Cancel
Save