test: add coverage for unknown -blockfilterindex

This commit is contained in:
brunoerg 2022-05-23 17:56:46 -03:00
parent 44037a2912
commit 295ff61934

View File

@ -250,6 +250,11 @@ 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 unknown value to -blockfilterindex raises an error")
self.nodes[0].extra_args = ["-blockfilterindex=abc"]
msg = "Error: Unknown -blockfilterindex value abc."
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. '