diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-02-09 08:54:06 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-02-09 08:54:25 +0100 |
| commit | 3ffe4b241ed4c7733a1ac8312fd3766e0d312d48 (patch) | |
| tree | 57601fc915017ec17685cec321a2cd8baf591a26 /src/main.cpp | |
| parent | Merge #7472: rpc: Add WWW-Authenticate header to 401 response (diff) | |
| parent | Update nQueuedValidatedHeaders after peer disconnection (diff) | |
| download | discoin-3ffe4b241ed4c7733a1ac8312fd3766e0d312d48.tar.xz discoin-3ffe4b241ed4c7733a1ac8312fd3766e0d312d48.zip | |
Merge #7482: [P2P] Ensure headers count is correct
301bc7b Update nQueuedValidatedHeaders after peer disconnection (Suhas Daftuar)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 89b4b2930..20539c1ba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -332,8 +332,10 @@ void FinalizeNode(NodeId nodeid) { AddressCurrentlyConnected(state->address); } - BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) + BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) { + nQueuedValidatedHeaders -= entry.fValidatedHeaders; mapBlocksInFlight.erase(entry.hash); + } EraseOrphansFor(nodeid); nPreferredDownload -= state->fPreferredDownload; |