diff options
author | Patick Strateman <patrick.strateman@gmail.com> | 2015-11-29 01:56:00 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-11-30 12:53:48 +0100 |
commit | b6a0da45db8d534e7a77d1cebe382cd5d83ba9b8 (patch) | |
tree | 034f19801aa06588c57bb5c3d2a3355054708077 | |
parent | 6b849350ab074a7ccb80ecbef387f59e1271ded6 (diff) |
Only use filterInventoryKnown with MSG_TX inventory messages.
Previously this logic could erroneously filter a MSG_BLOCK inventory message.
-rw-r--r-- | src/net.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } } |