aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 7f3143510d..25dea3fc3b 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);
}
}