aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-04-08 16:26:41 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-04-21 00:33:56 +0200
commited7068302c7490e8061cb3a558a0f83a465beeea (patch)
tree99d5a18d6912a7cdefd9874f65508f0a0c95f497 /src/net.h
parentdc13dcd2bec2613a1cd5e0395b09b449d176146f (diff)
Handle mempool requests in send loop, subject to trickle
By eliminating queued entries from the mempool response and responding only at trickle time, this makes the mempool no longer leak transaction arrival order information (as the mempool itself is also sorted)-- at least no more than relay itself leaks it.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index a95fa79e7e..26acf59e60 100644
--- a/src/net.h
+++ b/src/net.h
@@ -411,6 +411,8 @@ public:
// Used for headers announcements - unfiltered blocks to relay
// Also protected by cs_inventory
std::vector<uint256> vBlockHashesToAnnounce;
+ // Used for BIP35 mempool sending, also protected by cs_inventory
+ bool fSendMempool;
// Ping time measurement:
// The pong reply we're expecting, or 0 if no pong expected.