mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Only use filterInventoryKnown with MSG_TX inventory messages.
Previously this logic could erroneously filter a MSG_BLOCK inventory message.
This commit is contained in:
parent
6b849350ab
commit
b6a0da45db
1 changed files with 3 additions and 2 deletions
|
|
@ -501,8 +501,9 @@ public:
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
LOCK(cs_inventory);
|
LOCK(cs_inventory);
|
||||||
if (!filterInventoryKnown.contains(inv.hash))
|
if (inv.type == MSG_TX && filterInventoryKnown.contains(inv.hash))
|
||||||
vInventoryToSend.push_back(inv);
|
return;
|
||||||
|
vInventoryToSend.push_back(inv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue