Be smarter about when we grab fetch packs.

This commit is contained in:
JoelKatz
2013-04-25 19:11:18 -07:00
parent d8d87ff207
commit 4812d30c16
5 changed files with 24 additions and 9 deletions

View File

@@ -1274,7 +1274,7 @@ void Peer::recvGetObjectByHash(const boost::shared_ptr<ripple::TMGetObjectByHash
}
tLog(pLDo && (pLSeq != 0), lsDEBUG) << "Received partial fetch pack for " << pLSeq;
if (packet.type() == ripple::TMGetObjectByHash::otFETCH_PACK)
theApp->getOPs().gotFetchPack(progress);
theApp->getOPs().gotFetchPack(progress, pLSeq);
}
}