diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-08-25 09:58:23 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-08-25 10:48:24 +0200 |
commit | 026c6edac947eccb6d6e544468080af9c53593a8 (patch) | |
tree | af2bb9333660b51482f71a0055d8a4e45b82f56a /src/main.cpp | |
parent | 62a5a8a01866b2af2c93125c6501538a3feab724 (diff) | |
parent | dbb1f640e67da25f0a41b9d2e696b789d2fd4e0d (diff) |
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.cpp | 6 |
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) { |