Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 643160f6e7e5e8ca84bc7d2c1a0f37d9cf43a6e1 1 parent 9e3e21e
@TheBlueMatt authored
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())
Please sign in to comment.
Something went wrong with that request. Please try again.