Page MenuHomePhabricator

Clear pindexBestHeader in ChainstateManager::Unload()
ClosedPublic

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

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC75289e8ea88a: Clear pindexBestHeader in ChainstateManager::Unload()
Summary

Code Reviewer Notes

Call graph of relevant functions:

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

Safe because ChainstateManager::Unload() is called only by
UnloadBlockIndex() and no other callers.

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

Depends on D13044

Test Plan

ninja all check-all

Diff Detail

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