Skip to content

Commit 295ff61

Browse files
committed
test: add coverage for unknown -blockfilterindex
1 parent 44037a2 commit 295ff61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/functional/p2p_blockfilters.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ def run_test(self):
250250
msg = "Error: Cannot set -peerblockfilters without -blockfilterindex."
251251
self.nodes[0].assert_start_raises_init_error(expected_msg=msg)
252252

253+
self.log.info("Test unknown value to -blockfilterindex raises an error")
254+
self.nodes[0].extra_args = ["-blockfilterindex=abc"]
255+
msg = "Error: Unknown -blockfilterindex value abc."
256+
self.nodes[0].assert_start_raises_init_error(expected_msg=msg)
257+
253258
self.log.info("Test -blockfilterindex with -reindex-chainstate raises an error")
254259
self.nodes[0].assert_start_raises_init_error(
255260
expected_msg='Error: -reindex-chainstate option is not compatible with -blockfilterindex. '

0 commit comments

Comments
 (0)