aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2013-03-27 19:45:43 -0400
committerMatt Corallo <[email protected]>2013-04-01 11:56:23 -0400
commitb5afda67f2846ddc6554304acc1567796733725b (patch)
treee98486aeeba72e420d3229a136d841c4735b1246 /src/net.cpp
parentAdd a limitedmap class similar to mruset (diff)
downloaddiscoin-b5afda67f2846ddc6554304acc1567796733725b.tar.xz
discoin-b5afda67f2846ddc6554304acc1567796733725b.zip
Move mapAlreadyAskedFor to limitedmap
This will result in re-requesting invs if we are under heavy inv load, however as long as we get no more than 16,000 invs in two minutes, this should have no effect on runtime behavior.
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 9ee6cb423..926d57026 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -63,7 +63,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;