HomePhabricator

refactor, blockstorage: Replace blocksdir arg

Description

refactor, blockstorage: Replace blocksdir arg

Summary:
Add a blocks_dir field to the BlockManager options. Move functions
relying on the global gArgs to get the blocks_dir into the BlockManager
class.

This should eventually allow users of the BlockManager to not rely on
the global Args and instead pass in their own options.

This is a partial backport of core#27125
https://github.com/bitcoin/bitcoin/pull/27125/commits/18e5ba7c8002bcd473ee29ce4b5bfc56df6142a4

Depends on D16185

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
TheCharlatan <seb.kung@gmail.com>Authored on Feb 18 2023, 17:17
PiRKCommitted on May 21 2024, 15:00
PiRKPushed on May 21 2024, 15:00
Reviewer
Restricted Project
Differential Revision
D16186: refactor, blockstorage: Replace blocksdir arg
Parents
rABC4ebf2abf6302: refactor, BlockManager: Replace fastprune from arg with options
Branches
Unknown
Tags
Unknown