diff options
| author | Matt Corallo <[email protected]> | 2017-02-07 15:23:17 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-07 17:44:46 -0500 |
| commit | 2cbd1196b7a07b08cfd91417f2e8ddd09d9f2082 (patch) | |
| tree | 9498b7cb6c5713d3cbe88a94a7c131af0072dab8 /src/net.cpp | |
| parent | Merge #9532: Remove unused variables (diff) | |
| download | discoin-2cbd1196b7a07b08cfd91417f2e8ddd09d9f2082.tar.xz discoin-2cbd1196b7a07b08cfd91417f2e8ddd09d9f2082.zip | |
Disconnect peers which we do not receive VERACKs from within 60 sec
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 4d0d781d6..3394f8a08 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1323,6 +1323,11 @@ void CConnman::ThreadSocketHandler() LogPrintf("ping timeout: %fs\n", 0.000001 * (GetTimeMicros() - pnode->nPingUsecStart)); pnode->fDisconnect = true; } + else if (!pnode->fSuccessfullyConnected) + { + LogPrintf("version handshake timeout from %d\n", pnode->id); + pnode->fDisconnect = true; + } } } { |