From 643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 21 Jul 2011 22:06:20 +0200 Subject: [PATCH] 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. --- src/main.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e3ad350..8697c6f 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()) -- 1.7.1