Browse files

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.
  • Loading branch information...
1 parent 9e3e21e commit 643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1 @TheBlueMatt committed Jul 21, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main.cpp
View
1 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())

0 comments on commit 643160f

Please sign in to comment.