aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2016-04-11 01:09:34 +0000
committerGregory Maxwell <greg@xiph.org>2016-04-11 01:09:34 +0000
commit66b07247a7a9e48e082502338176cc06edf61474 (patch)
tree3ebcc514aeed59dcb78829228b29bc3ded4757bc /src/net.h
parent065c6b443f3e9864b1b4231208b49e3cef99cef3 (diff)
Only send one GetAddr response per connection.
This conserves resources from abusive peers that just send getaddr in a loop. Also makes correlating addr messages against INVs less effective.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index ab9eb68d85..230fd5bf40 100644
--- a/src/net.h
+++ b/src/net.h
@@ -358,6 +358,7 @@ public:
// 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 fSentAddr;
CSemaphoreGrant grantOutbound;
CCriticalSection cs_filter;
CBloomFilter* pfilter;