Page MenuHomePhabricator

Clear fHavePruned in BlockManager::Unload()
ClosedPublic

Authored by PiRK on Jan 24 2023, 12:07.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC353b5d80b46a: Clear fHavePruned in BlockManager::Unload()
Summary

Code Reviewer Notes

Call graph of relevant functions:

UnloadBlockIndex() <-- Moved from
calls ChainstateManager::Unload()
which calls BlockManager::Unload() <-- Moved to

So calling UnloadBlockIndex() would still run this moved code. The code
will also now run when ~BlockManager gets called, which makes sense.

This is a partial backport of core#24909
https://github.com/bitcoin/bitcoin/pull/24909/commits/a4014021258319941716d6338c18667462a06280

Depends on D13046

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable