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 2015-11-29 01:56:00 -08:00 committed by Pieter Wuille
parent 6b849350ab
commit b6a0da45db

View file

@ -501,7 +501,8 @@ public:
{ {
{ {
LOCK(cs_inventory); LOCK(cs_inventory);
if (!filterInventoryKnown.contains(inv.hash)) if (inv.type == MSG_TX && filterInventoryKnown.contains(inv.hash))
return;
vInventoryToSend.push_back(inv); vInventoryToSend.push_back(inv);
} }
} }