aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_pruning.py
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2022-03-21 13:13:49 +0100
committerMartin Zumsande <mzumsande@gmail.com>2022-03-24 13:03:40 +0100
commitb2813980b81034ff9b40bd45080fa67dea475d39 (patch)
tree180de3975c7701a99a46d1ab41bb3995d38fb373 /test/functional/feature_pruning.py
parent91d12344b1e51809c1ef6b630b631a6da00267c3 (diff)
downloadbitcoin-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-xtest/functional/feature_pruning.py4
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"