HomePhabricator

Move LoadBlockIndexDB to BlockManager

Description

Move LoadBlockIndexDB to BlockManager

Summary:

The block tree db is used within BlockManager to write and read the block index, so make the it a member variable of BlockManager instead of a global.

This is a backport of core#22371 [1/2]
https://github.com/bitcoin/bitcoin/pull/22371/commits/fa27f03b4943540aa2eab283d4cf50ad4a1a01f8

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D12241

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jul 1 2021, 07:58
PiRKCommitted on Oct 17 2022, 07:07
PiRKPushed on Oct 17 2022, 07:07
Reviewer
Restricted Project
Differential Revision
D12241: Move LoadBlockIndexDB to BlockManager
Parents
rABC509469aab7ea: addrman: Fix new table bucketing during unserialization
Branches
Unknown
Tags
Unknown