We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e90e1 commit 2ab7952Copy full SHA for 2ab7952
test/functional/p2p_blockfilters.py
@@ -247,6 +247,14 @@ def run_test(self):
247
stop_hash=123456789,
248
), "requested invalid block hash"
249
),
250
+ (
251
+ # Request with (start block height > stop block height) results in disconnection.
252
+ msg_getcfheaders(
253
+ filter_type=FILTER_TYPE_BASIC,
254
+ start_height=1000,
255
+ stop_hash=int(self.nodes[0].getblockhash(999), 16),
256
+ ), "sent invalid getcfilters/getcfheaders with start height 1000 and stop height 999"
257
+ ),
258
]
259
for request, expected_log_msg in requests:
260
peer_0 = self.nodes[0].add_p2p_connection(P2PInterface())
0 commit comments