mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-13 16:48:08 +00:00
Merge #7482: [P2P] Ensure headers count is correct
301bc7b
Update nQueuedValidatedHeaders after peer disconnection (Suhas Daftuar)
This commit is contained in:
commit
3ffe4b241e
@ -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