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 Fuzzbawls committed Jun 23, 2020
1 parent 01273db commit 9ac6b28
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 @@ -494,8 +494,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 9ac6b28

Please sign in to comment.