mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
test: -peerblockfilters without -blockfilterindex raises an error
This commit is contained in:
parent
a13946b822
commit
d6bc2322ed
1 changed files with 6 additions and 0 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue