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 Jack Grigg
parent 021ff72e60
commit 2391de6375
1 changed files with 3 additions and 2 deletions

View File

@ -452,8 +452,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);
}
}