Skip to content

Commit

Permalink
Update nQueuedValidatedHeaders after peer disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaftuar committed Feb 8, 2016
1 parent eb33179 commit 301bc7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 301bc7b

Please sign in to comment.