Update nQueuedValidatedHeaders after peer disconnection
Github-Pull: #7482 Rebased-From: 301bc7bc7e83f4c268c1722558b07dbb5b55fa92
This commit is contained in:
parent
b2f2b85ad5
commit
e16f5b40c2
@ -331,8 +331,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…
Reference in New Issue
Block a user