aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-07-21 22:06:20 +0200
committerMatt Corallo <matt@bluematt.me>2011-07-21 22:06:20 +0200
commit643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1 (patch)
tree7ae4dcfad59382948bb0f945d164aa648e0b93c2 /src
parent9e3e21efeb52cd91d4507a9e8e07c68bafb65223 (diff)
Actually use mapAlreadyAskedFor.
Previously, mapAlreadyAskedFor was read from, but never added to. The original intent was to use mapAlreadyAskedFor to keep track of the time an item was requested and "Each retry is 2 minutes after the last". This implements that intent.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e3ad35044e..8697c6f2a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2570,6 +2570,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
vGetData.clear();
}
}
+ mapAlreadyAskedFor[inv] = nNow;
pto->mapAskFor.erase(pto->mapAskFor.begin());
}
if (!vGetData.empty())