diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2022-03-21 13:13:49 +0100 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2022-03-24 13:03:40 +0100 |
commit | b2813980b81034ff9b40bd45080fa67dea475d39 (patch) | |
tree | 180de3975c7701a99a46d1ab41bb3995d38fb373 /test/functional/feature_pruning.py | |
parent | 91d12344b1e51809c1ef6b630b631a6da00267c3 (diff) | |
download | bitcoin-b2813980b81034ff9b40bd45080fa67dea475d39.tar.xz |
init: disallow reindex-chainstate when pruning
This fixes a bug where the node would be stuck in an
endless loop when combining these parameters.
Diffstat (limited to 'test/functional/feature_pruning.py')
-rwxr-xr-x | test/functional/feature_pruning.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py index ba3c5053cb..bf19384279 100755 --- a/test/functional/feature_pruning.py +++ b/test/functional/feature_pruning.py @@ -141,6 +141,10 @@ class PruneTest(BitcoinTestFramework): expected_msg='Error: Prune mode is incompatible with -coinstatsindex.', extra_args=['-prune=550', '-coinstatsindex'], ) + self.nodes[0].assert_start_raises_init_error( + expected_msg='Error: Prune mode is incompatible with -reindex-chainstate. Use full -reindex instead.', + extra_args=['-prune=550', '-reindex-chainstate'], + ) def test_height_min(self): assert os.path.isfile(os.path.join(self.prunedir, "blk00000.dat")), "blk00000.dat is missing, pruning too early" |