Permalink
Browse files

Update nQueuedValidatedHeaders after peer disconnection

Github-Pull: #7482
Rebased-From: 301bc7b
  • Loading branch information...
sdaftuar authored and laanwj committed Feb 8, 2016
1 parent b2f2b85 commit e16f5b40c2a3ba6777c010d0b7ae711e4674cb9f
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main.cpp
View
@@ -331,8 +331,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;

0 comments on commit e16f5b4

Please sign in to comment.