Browse Source

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.
0.8
Matt Corallo 14 years ago
parent
commit
643160f6e7
  1. 1
      src/main.cpp

1
src/main.cpp

@ -2570,6 +2570,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
vGetData.clear(); vGetData.clear();
} }
} }
mapAlreadyAskedFor[inv] = nNow;
pto->mapAskFor.erase(pto->mapAskFor.begin()); pto->mapAskFor.erase(pto->mapAskFor.begin());
} }
if (!vGetData.empty()) if (!vGetData.empty())

Loading…
Cancel
Save