Skip to content

Commit

Permalink
fixes #9, Multiblock refetching multiple blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
SDCDev committed May 11, 2015
1 parent 08b089c commit 4d0a0bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6499,8 +6499,9 @@ bool SendMessages(CNode* pto, std::vector<CNode*> &vNodesCopy, bool fSendTrickle
while (!pto->mapAskFor.empty() && (*pto->mapAskFor.begin()).first <= nNow)
{
const CInv& inv = (*pto->mapAskFor.begin()).second;

if (!AlreadyHaveThin(txdb, inv))

if ((nNodeMode == NT_FULL && !AlreadyHave(txdb, inv))
|| (nNodeMode == NT_THIN && !AlreadyHaveThin(txdb, inv)))
{
if (fDebugNet)
LogPrintf("sending getdata: %s\n", inv.ToString().c_str());
Expand Down

0 comments on commit 4d0a0bc

Please sign in to comment.