mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Update nQueuedValidatedHeaders after peer disconnection
This commit is contained in:
parent
eb331794a2
commit
301bc7bc7e
@ -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…
Reference in New Issue
Block a user