Browse Source

Only use filterInventoryKnown with MSG_TX inventory messages.

Previously this logic could erroneously filter a MSG_BLOCK inventory message.
0.13
Patick Strateman 9 years ago committed by Pieter Wuille
parent
commit
b6a0da45db
  1. 5
      src/net.h

5
src/net.h

@ -501,8 +501,9 @@ public: @@ -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);
}
}

Loading…
Cancel
Save