diff options
Diffstat (limited to 'test/functional/p2p_invalid_locator.py')
-rwxr-xr-x | test/functional/p2p_invalid_locator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_invalid_locator.py b/test/functional/p2p_invalid_locator.py index bde01d5c95..d36f4c6a02 100755 --- a/test/functional/p2p_invalid_locator.py +++ b/test/functional/p2p_invalid_locator.py @@ -24,14 +24,14 @@ class InvalidLocatorTest(BitcoinTestFramework): self.log.info('Wait for disconnect when sending {} hashes in locator'.format(MAX_LOCATOR_SZ + 1)) exceed_max_peer = node.add_p2p_connection(P2PInterface()) msg.locator.vHave = [int(node.getblockhash(i - 1), 16) for i in range(block_count, block_count - (MAX_LOCATOR_SZ + 1), -1)] - exceed_max_peer.send_message(msg) + exceed_max_peer.send_without_ping(msg) exceed_max_peer.wait_for_disconnect() node.disconnect_p2ps() self.log.info('Wait for response when sending {} hashes in locator'.format(MAX_LOCATOR_SZ)) within_max_peer = node.add_p2p_connection(P2PInterface()) msg.locator.vHave = [int(node.getblockhash(i - 1), 16) for i in range(block_count, block_count - (MAX_LOCATOR_SZ), -1)] - within_max_peer.send_message(msg) + within_max_peer.send_without_ping(msg) if type(msg) is msg_getheaders: within_max_peer.wait_for_header(node.getbestblockhash()) else: |