Skip to content

Commit d6bc232

Browse files
committed
test: -peerblockfilters without -blockfilterindex raises an error
1 parent a13946b commit d6bc232

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/functional/p2p_blockfilters.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ def run_test(self):
244244
peer_0.send_message(request)
245245
peer_0.wait_for_disconnect()
246246

247+
self.log.info("Test -peerblockfilters without -blockfilterindex raises an error")
248+
self.stop_node(0)
249+
self.nodes[0].extra_args = ["-peerblockfilters"]
250+
msg = "Error: Cannot set -peerblockfilters without -blockfilterindex."
251+
self.nodes[0].assert_start_raises_init_error(expected_msg=msg)
252+
247253

248254
def compute_last_header(prev_header, hashes):
249255
"""Compute the last filter header from a starting header and a sequence of filter hashes."""

0 commit comments

Comments
 (0)