Skip to content

Commit

Permalink
Only use filterInventoryKnown with MSG_TX inventory messages.
Browse files Browse the repository at this point in the history
Previously this logic could erroneously filter a MSG_BLOCK inventory message.
  • Loading branch information
pstratem authored and sipa committed Nov 30, 2015
1 parent 6b84935 commit b6a0da4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,9 @@ class CNode
{
{
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);
}
}

Expand Down

0 comments on commit b6a0da4

Please sign in to comment.