mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Rename setInventoryKnown filterInventoryKnown
This commit is contained in:
committed by
Pieter Wuille
parent
e20672479e
commit
6b849350ab
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user