Update nQueuedValidatedHeaders after peer disconnection
This commit is contained in:
1 parent
eb331794a2
commit
301bc7bc7e
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user