HomePhabricator

refactor: Add stop_at_height option in ChainstateManager

Description

refactor: Add stop_at_height option in ChainstateManager

Summary:
Remove access to the global gArgs for the stopatheight argument and
replace it by adding a field to the existing ChainstateManager Options
struct.

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

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

Depends on D18684

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
TheCharlatan <seb.kung@gmail.com>Authored on May 4 2023, 21:04
PiRKCommitted on Sep 25 2025, 06:50
PiRKPushed on Sep 25 2025, 06:50
Reviewer
Restricted Project
Differential Revision
D18685: refactor: Add stop_at_height option in ChainstateManager
Parents
rABC70f94b283fbf: refactor: add parkdeepreorg and automaticunparking options in ChainstateManager
Branches
Unknown
Tags
Unknown