aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-04-03 18:31:35 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-04-03 18:31:35 -0700
commitaaf47eac3abef5741b6c108fdc8a19cb46b773a2 (patch)
tree287dffec550319b4fb6d662d61768862ac410de1 /src/net.cpp
parentf7955fafbd22849b50500d04640a2ebacd9fb976 (diff)
parentb5afda67f2846ddc6554304acc1567796733725b (diff)
Merge pull request #2423 from TheBlueMatt/limitedmapalreadyaskedfor
Limited mapAlreadyAskedFor
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index f1ece2c2e9..5f8b5ba32b 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -53,7 +53,7 @@ CCriticalSection cs_vNodes;
map<CInv, CDataStream> mapRelay;
deque<pair<int64, CInv> > vRelayExpiration;
CCriticalSection cs_mapRelay;
-map<CInv, int64> mapAlreadyAskedFor;
+limitedmap<CInv, int64> mapAlreadyAskedFor(MAX_INV_SZ);
static deque<string> vOneShots;
CCriticalSection cs_vOneShots;