Only use filterInventoryKnown with MSG_TX inventory messages.

Previously this logic could erroneously filter a MSG_BLOCK inventory message.
This commit is contained in:
Patick Strateman authored and Pieter Wuille committed 2015-11-30 12:53:48 +01:00
1 parent 6b849350ab
commit b6a0da45db
1 file changed
+3 -2
+3 -2
View File
@@ -501,8 +501,9 @@ public:
{
{
LOCK(cs_inventory);
if (!filterInventoryKnown.contains(inv.hash))
vInventoryToSend.push_back(inv);
if (inv.type == MSG_TX && filterInventoryKnown.contains(inv.hash))
return;
vInventoryToSend.push_back(inv);
}
}