diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2022-04-06 15:28:46 +0200 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2022-04-24 22:28:25 +0200 |
commit | dac44fc06ff9938d070aa5221d106a7f31da9d81 (patch) | |
tree | e2d3631eb373791eda3b374da2fee406feb00873 /test/functional/p2p_blockfilters.py | |
parent | 62e14285f95d4ecb9528813acca975640dd7c598 (diff) | |
download | bitcoin-dac44fc06ff9938d070aa5221d106a7f31da9d81.tar.xz |
init: disallow reindex-chainstate with optional indexes
It currently leads to corruption (coinstatsindex) or
data duplication (blockfilterindex), so disable it.
Diffstat (limited to 'test/functional/p2p_blockfilters.py')
-rwxr-xr-x | test/functional/p2p_blockfilters.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/p2p_blockfilters.py b/test/functional/p2p_blockfilters.py index e45cef65bd..2ffc825acd 100755 --- a/test/functional/p2p_blockfilters.py +++ b/test/functional/p2p_blockfilters.py @@ -250,6 +250,12 @@ class CompactFiltersTest(BitcoinTestFramework): msg = "Error: Cannot set -peerblockfilters without -blockfilterindex." self.nodes[0].assert_start_raises_init_error(expected_msg=msg) + self.log.info("Test -blockfilterindex with -reindex-chainstate raises an error") + self.nodes[0].assert_start_raises_init_error( + expected_msg='Error: -reindex-chainstate option is not compatible with -blockfilterindex. ' + 'Please temporarily disable blockfilterindex while using -reindex-chainstate, or replace -reindex-chainstate with -reindex to fully rebuild all indexes.', + extra_args=['-blockfilterindex', '-reindex-chainstate'], + ) def compute_last_header(prev_header, hashes): """Compute the last filter header from a starting header and a sequence of filter hashes.""" |