diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-04-20 07:05:23 +0000 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-04-21 00:33:56 +0200 |
commit | b5599147533103efea896a1fc4ff51f2d3ad5808 (patch) | |
tree | 96273816a881746f3d0390d7e50e6466eb6f28c0 /src/net.cpp | |
parent | 4578215e7f787968c1d6478e6df75499bd36dd8d (diff) |
Move bloom and feerate filtering to just prior to tx sending.
This will avoid sending more pointless INVs around updates, and
prevents using filter updates to timetag transactions.
Also adds locking for fRelayTxes.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/net.cpp b/src/net.cpp index 6b305ebae4..ccc430f5c2 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2071,20 +2071,7 @@ void RelayTransaction(const CTransaction& tx, CFeeRate feerate) LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) { - if(!pnode->fRelayTxes) - continue; - { - LOCK(pnode->cs_feeFilter); - if (feerate.GetFeePerK() < pnode->minFeeFilter) - continue; - } - LOCK(pnode->cs_filter); - if (pnode->pfilter) - { - if (pnode->pfilter->IsRelevantAndUpdate(tx)) - pnode->PushInventory(inv); - } else - pnode->PushInventory(inv); + pnode->PushInventory(inv); } } |