diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-08-25 09:58:23 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-08-25 10:48:24 +0200 |
| commit | 026c6edac947eccb6d6e544468080af9c53593a8 (patch) | |
| tree | af2bb9333660b51482f71a0055d8a4e45b82f56a /src/main.cpp | |
| parent | Merge #8463: [qt] Remove Priority from coincontrol dialog (diff) | |
| parent | Added feeler connections increasing good addrs in the tried table. (diff) | |
| download | discoin-026c6edac947eccb6d6e544468080af9c53593a8.tar.xz discoin-026c6edac947eccb6d6e544468080af9c53593a8.zip | |
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 27ab677eb..291d7e66a 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) { |