Browse Source

Update nQueuedValidatedHeaders after peer disconnection

0.13
Suhas Daftuar 9 years ago
parent
commit
301bc7bc7e
  1. 4
      src/main.cpp

4
src/main.cpp

@ -332,8 +332,10 @@ void FinalizeNode(NodeId nodeid) {
AddressCurrentlyConnected(state->address); AddressCurrentlyConnected(state->address);
} }
BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) {
nQueuedValidatedHeaders -= entry.fValidatedHeaders;
mapBlocksInFlight.erase(entry.hash); mapBlocksInFlight.erase(entry.hash);
}
EraseOrphansFor(nodeid); EraseOrphansFor(nodeid);
nPreferredDownload -= state->fPreferredDownload; nPreferredDownload -= state->fPreferredDownload;

Loading…
Cancel
Save