aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-03-28 15:28:37 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-03-28 15:28:37 -0300
commitd6bc2322ed2e0674e027d39825fdadbb0db2c24a (patch)
treef6a51fcc4cfc9ea5c82f4abecf6430004eb32eb6
parenta13946b8227dac191e33eb2099230457e786e5cc (diff)
downloadbitcoin-d6bc2322ed2e0674e027d39825fdadbb0db2c24a.tar.xz
test: -peerblockfilters without -blockfilterindex raises an error
-rwxr-xr-xtest/functional/p2p_blockfilters.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/p2p_blockfilters.py b/test/functional/p2p_blockfilters.py
index e73fad439f..e45cef65bd 100755
--- a/test/functional/p2p_blockfilters.py
+++ b/test/functional/p2p_blockfilters.py
@@ -244,6 +244,12 @@ class CompactFiltersTest(BitcoinTestFramework):
peer_0.send_message(request)
peer_0.wait_for_disconnect()
+ self.log.info("Test -peerblockfilters without -blockfilterindex raises an error")
+ self.stop_node(0)
+ self.nodes[0].extra_args = ["-peerblockfilters"]
+ msg = "Error: Cannot set -peerblockfilters without -blockfilterindex."
+ self.nodes[0].assert_start_raises_init_error(expected_msg=msg)
+
def compute_last_header(prev_header, hashes):
"""Compute the last filter header from a starting header and a sequence of filter hashes."""