diff options
author | Pieter Wuille <sipa@ulyssis.org> | 2014-05-30 12:01:20 +0200 |
---|---|---|
committer | Pieter Wuille <sipa@ulyssis.org> | 2014-05-30 12:01:53 +0200 |
commit | 5823449e2d7f76fa1f24fed881a8a5041b34b6bf (patch) | |
tree | e54f858c7749be97a9ef1e15c3a30c745339f256 /src/net.h | |
parent | 97ab93f50b6f35bc362990e9dd665b90ca4132df (diff) |
Limit number of known addresses per peer
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |