File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -5510,7 +5510,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
5510
5510
vInvWait.reserve (pto->vInventoryToSend .size ());
5511
5511
BOOST_FOREACH (const CInv& inv, pto->vInventoryToSend )
5512
5512
{
5513
- if (pto->filterInventoryKnown .contains (inv.hash ))
5513
+ if (inv. type == MSG_TX && pto->filterInventoryKnown .contains (inv.hash ))
5514
5514
continue ;
5515
5515
5516
5516
// trickle out tx inv to protect privacy
@@ -5531,15 +5531,13 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
5531
5531
}
5532
5532
}
5533
5533
5534
- if (!pto->filterInventoryKnown .contains (inv.hash ))
5534
+ pto->filterInventoryKnown .insert (inv.hash );
5535
+
5536
+ vInv.push_back (inv);
5537
+ if (vInv.size () >= 1000 )
5535
5538
{
5536
- pto->filterInventoryKnown .insert (inv.hash );
5537
- vInv.push_back (inv);
5538
- if (vInv.size () >= 1000 )
5539
- {
5540
- pto->PushMessage (" inv" , vInv);
5541
- vInv.clear ();
5542
- }
5539
+ pto->PushMessage (" inv" , vInv);
5540
+ vInv.clear ();
5543
5541
}
5544
5542
}
5545
5543
pto->vInventoryToSend = vInvWait;
You can’t perform that action at this time.
0 commit comments