aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2016-04-20 07:05:23 +0000
committerPieter Wuille <[email protected]>2016-04-21 00:33:56 +0200
commitb5599147533103efea896a1fc4ff51f2d3ad5808 (patch)
tree96273816a881746f3d0390d7e50e6466eb6f28c0 /src/net.h
parentReturn mempool queries in dependency order (diff)
downloaddiscoin-b5599147533103efea896a1fc4ff51f2d3ad5808.tar.xz
discoin-b5599147533103efea896a1fc4ff51f2d3ad5808.zip
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.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 26acf59e6..b6ec7bf3e 100644
--- a/src/net.h
+++ b/src/net.h
@@ -357,7 +357,7 @@ public:
// a) it allows us to not relay tx invs before receiving the peer's version message
// b) the peer may tell us in its version message that we should not relay tx invs
// unless it loads a bloom filter.
- bool fRelayTxes;
+ bool fRelayTxes; //protected by cs_filter
bool fSentAddr;
CSemaphoreGrant grantOutbound;
CCriticalSection cs_filter;