aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-05-23 17:56:46 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-05-23 18:06:13 -0300
commit295ff61934f8adea04dabb47695070e2cfd0548e (patch)
treee0d286aef36248dd1542e4073efd7df956d991f4 /test
parent44037a29129a830fd9c9580f0818387756cfd7d3 (diff)
downloadbitcoin-295ff61934f8adea04dabb47695070e2cfd0548e.tar.xz
test: add coverage for unknown -blockfilterindex
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/p2p_blockfilters.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/p2p_blockfilters.py b/test/functional/p2p_blockfilters.py
index 2ffc825acd..ef12b5f6b7 100755
--- a/test/functional/p2p_blockfilters.py
+++ b/test/functional/p2p_blockfilters.py
@@ -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. '