aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-04-08 16:26:41 +0200
committerPieter Wuille <[email protected]>2016-04-21 00:33:56 +0200
commited7068302c7490e8061cb3a558a0f83a465beeea (patch)
tree99d5a18d6912a7cdefd9874f65508f0a0c95f497 /src/net.cpp
parentSplit up and optimize transaction and block inv queues (diff)
downloaddiscoin-ed7068302c7490e8061cb3a558a0f83a465beeea.tar.xz
discoin-ed7068302c7490e8061cb3a558a0f83a465beeea.zip
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.cpp')
-rw-r--r--src/net.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index f294e4c66..6b305ebae 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2370,6 +2370,7 @@ CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNa
hashContinue = uint256();
nStartingHeight = -1;
filterInventoryKnown.reset();
+ fSendMempool = false;
fGetAddr = false;
nNextLocalAddrSend = 0;
nNextAddrSend = 0;