Rename setInventoryKnown filterInventoryKnown

This commit is contained in:
Patick Strateman
2015-11-29 01:52:51 -08:00
committed by Pieter Wuille
parent e20672479e
commit 6b849350ab
3 changed files with 8 additions and 8 deletions

View File

@@ -5510,7 +5510,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
vInvWait.reserve(pto->vInventoryToSend.size());
BOOST_FOREACH(const CInv& inv, pto->vInventoryToSend)
{
if (pto->setInventoryKnown.contains(inv.hash))
if (pto->filterInventoryKnown.contains(inv.hash))
continue;
// trickle out tx inv to protect privacy
@@ -5531,9 +5531,9 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
}
}
if (!pto->setInventoryKnown.contains(inv.hash))
if (!pto->filterInventoryKnown.contains(inv.hash))
{
pto->setInventoryKnown.insert(inv.hash);
pto->filterInventoryKnown.insert(inv.hash);
vInv.push_back(inv);
if (vInv.size() >= 1000)
{