aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-08-25 09:58:23 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-08-25 10:48:24 +0200
commit026c6edac947eccb6d6e544468080af9c53593a8 (patch)
treeaf2bb9333660b51482f71a0055d8a4e45b82f56a /src/main.cpp
parent62a5a8a01866b2af2c93125c6501538a3feab724 (diff)
parentdbb1f640e67da25f0a41b9d2e696b789d2fd4e0d (diff)
downloadbitcoin-026c6edac947eccb6d6e544468080af9c53593a8.tar.xz
Merge #8282: net: Feeler connections to increase online addrs in the tried table.
dbb1f64 Added feeler connections increasing good addrs in the tried table. (Ethan Heilman)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 27ab677eb1..291d7e66a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4903,6 +4903,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
if (strCommand == NetMsgType::VERSION)
{
+ // Feeler connections exist only to verify if address is online.
+ if (pfrom->fFeeler) {
+ assert(pfrom->fInbound == false);
+ pfrom->fDisconnect = true;
+ }
+
// Each connection can only send one version message
if (pfrom->nVersion != 0)
{