aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2016-05-21 09:45:32 +0000
committerGregory Maxwell <greg@xiph.org>2016-05-31 15:35:45 +0000
commit4d8993b3469915d8c9ba4cd3b918f16782edf0de (patch)
tree5456eaf96d2af1e346f77af0e52d91c710709b12 /src/net.h
parent862fd24b40b478f815dcb5df4f705cae2c0a1cf9 (diff)
downloadbitcoin-4d8993b3469915d8c9ba4cd3b918f16782edf0de.tar.xz
Defer inserting into maprelay until just before relaying.
This reduces the rate of not founds by better matching the far end expectations, it also improves privacy by removing the ability to use getdata to probe for a node having a txn before it has been relayed.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/net.h b/src/net.h
index 0b4cd0bcb3..403653e8c8 100644
--- a/src/net.h
+++ b/src/net.h
@@ -162,9 +162,6 @@ extern int nMaxConnections;
extern std::vector<CNode*> vNodes;
extern CCriticalSection cs_vNodes;
-extern std::map<uint256, CTransaction> mapRelay;
-extern std::deque<std::pair<int64_t, uint256> > vRelayExpiration;
-extern CCriticalSection cs_mapRelay;
extern limitedmap<uint256, int64_t> mapAlreadyAskedFor;
extern std::vector<std::string> vAddedNodes;