aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2012-08-20 21:10:25 -0400
committerMatt Corallo <git@bluematt.me>2013-01-16 12:48:02 -0500
commit4c8fc1a5885634c3b463d5d44337d81cc5b1456b (patch)
treeafd148bb61784fc11a2e12bac84b46a99d887063 /src/net.cpp
parentb02ddbedcba4f9d86b1aabeb71fe18ec03f9a41a (diff)
Let a node opt out of tx invs before we get a their bloom filter
Note that the default value for fRelayTxes is false, meaning we now no longer relay tx inv messages before receiving the remote peer's version message.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index e88efcd19e..319739429c 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2031,6 +2031,8 @@ void RelayTransaction(const CTransaction& tx, const uint256& hash, const CDataSt
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes)
{
+ if(!pnode->fRelayTxes)
+ continue;
LOCK(pnode->cs_filter);
if (pnode->pfilter)
{