diff options
| author | Matt Corallo <[email protected]> | 2011-07-21 22:06:20 +0200 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2011-07-21 22:06:20 +0200 |
| commit | 643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1 (patch) | |
| tree | 7ae4dcfad59382948bb0f945d164aa648e0b93c2 /src/main.cpp | |
| parent | Merge pull request #419 from mibe/translation-de (diff) | |
| download | discoin-643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1.tar.xz discoin-643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1.zip | |
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/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index e3ad35044..8697c6f2a 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()) |