HomePhabricator

refactor, blockstorage: Replace stopafterblockimport arg

Description

refactor, blockstorage: Replace stopafterblockimport arg

Summary:
Add a stop_after_block_import field to the BlockManager options. Use
this field instead of the global gArgs.

This should allow users of the BlockManager to not rely on the global
Args.

This concludes backport of core#27125
https://github.com/bitcoin/bitcoin/pull/27125/commits/5ff63a09a9edd1204b2cc56cf6f48a44adab7bb3

Depends on D16186

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
TheCharlatan <seb.kung@gmail.com>Authored on Feb 19 2023, 09:20
PiRKCommitted on May 21 2024, 15:00
PiRKPushed on May 21 2024, 15:00
Reviewer
Restricted Project
Differential Revision
D16187: refactor, blockstorage: Replace stopafterblockimport arg
Parents
rABCd00ef4479e3c: refactor, blockstorage: Replace blocksdir arg
Branches
Unknown
Tags
Unknown