Browse Source

Update nQueuedValidatedHeaders after peer disconnection

tags/v0.15.1
Suhas Daftuar 5 years ago
parent
commit
301bc7bc7e
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/main.cpp

+ 3
- 1
src/main.cpp View File

@@ -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;


Loading…
Cancel
Save