HomePhabricator

init: disallow reindex-chainstate when pruning

Description

init: disallow reindex-chainstate when pruning

Summary:

This fixes a bug where the node would be stuck in an
endless loop when combining these parameters.

Backport of core#24626.

Depends on D17388.

Test Plan:

./test/functional/test_runner.py feature_pruning

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Martin Zumsande <mzumsande@gmail.com>Authored on Mar 21 2022, 12:13
FabienCommitted on Mon, Dec 23, 15:52
FabienPushed on Mon, Dec 23, 15:52
Reviewer
Restricted Project
Differential Revision
D17389: init: disallow reindex-chainstate when pruning
Parents
rABC65eec8ee3f69: test: check for invalid `-prune` parameters
Branches
Unknown
Tags
Unknown