Skip to content

Commit b6a0da4

Browse files
pstratemsipa
authored andcommitted
Only use filterInventoryKnown with MSG_TX inventory messages.
Previously this logic could erroneously filter a MSG_BLOCK inventory message.
1 parent 6b84935 commit b6a0da4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/net.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,9 @@ class CNode
501501
{
502502
{
503503
LOCK(cs_inventory);
504-
if (!filterInventoryKnown.contains(inv.hash))
505-
vInventoryToSend.push_back(inv);
504+
if (inv.type == MSG_TX && filterInventoryKnown.contains(inv.hash))
505+
return;
506+
vInventoryToSend.push_back(inv);
506507
}
507508
}
508509

0 commit comments

Comments
 (0)