Wladimir J. van der Laan
10 years ago
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
2 changed files with
3 additions and
2 deletions
-
src/mruset.h
-
src/net.h
|
|
@ -32,6 +32,7 @@ public: |
|
|
|
bool empty() const { return set.empty(); } |
|
|
|
iterator find(const key_type& k) const { return set.find(k); } |
|
|
|
size_type count(const key_type& k) const { return set.count(k); } |
|
|
|
void clear() { set.clear(); queue.clear(); } |
|
|
|
bool inline friend operator==(const mruset<T>& a, const mruset<T>& b) { return a.set == b.set; } |
|
|
|
bool inline friend operator==(const mruset<T>& a, const std::set<T>& b) { return a.set == b; } |
|
|
|
bool inline friend operator<(const mruset<T>& a, const mruset<T>& b) { return a.set < b.set; } |
|
|
|
|
|
@ -262,7 +262,7 @@ public: |
|
|
|
|
|
|
|
// flood relay
|
|
|
|
std::vector<CAddress> vAddrToSend; |
|
|
|
std::set<CAddress> setAddrKnown; |
|
|
|
mruset<CAddress> setAddrKnown; |
|
|
|
bool fGetAddr; |
|
|
|
std::set<uint256> setKnown; |
|
|
|
|
|
|
@ -278,7 +278,7 @@ public: |
|
|
|
int64_t nPingUsecTime; |
|
|
|
bool fPingQueued; |
|
|
|
|
|
|
|
CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION) |
|
|
|
CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION), setAddrKnown(5000) |
|
|
|
{ |
|
|
|
nServices = 0; |
|
|
|
hSocket = hSocketIn; |
|
|
|