aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPatick Strateman <patrick.strateman@gmail.com>2015-11-29 01:56:00 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2015-11-30 12:53:48 +0100
commitb6a0da45db8d534e7a77d1cebe382cd5d83ba9b8 (patch)
tree034f19801aa06588c57bb5c3d2a3355054708077 /src/net.h
parent6b849350ab074a7ccb80ecbef387f59e1271ded6 (diff)
Only use filterInventoryKnown with MSG_TX inventory messages.
Previously this logic could erroneously filter a MSG_BLOCK inventory message.
Diffstat (limited to 'src/net.h')
-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);
}
}