diff options
author | Pieter Wuille <sipa@ulyssis.org> | 2014-05-30 12:01:20 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-06-01 09:54:00 +0200 |
commit | d6377e6a4a5a7ba2df4b5161b3efcb843f64fbcb (patch) | |
tree | f119b8d1ca38d84701c743b13e1911c6ed69e43a /src/net.h | |
parent | 3a4a66f47eea61ba262f915900eae97c35aa3a56 (diff) | |
download | bitcoin-d6377e6a4a5a7ba2df4b5161b3efcb843f64fbcb.tar.xz |
Limit number of known addresses per peer
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 5823449
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -255,7 +255,7 @@ public: // flood relay std::vector<CAddress> vAddrToSend; - std::set<CAddress> setAddrKnown; + mruset<CAddress> setAddrKnown; bool fGetAddr; std::set<uint256> setKnown; @@ -271,7 +271,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; |