aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_sendheaders.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-04-01 15:37:20 +0200
committerJon Atack <jon@atack.com>2020-04-01 17:30:02 +0200
commit6112a209828c43930f677c45461339cdf68a56e9 (patch)
tree137ce782cfbfe549a555e0fb8de171a9fd01321a /test/functional/p2p_sendheaders.py
parentb97e3a73498bb49e81039e90e9cb5acdca9123cc (diff)
test: replace (send_message + sync_with_ping) with send_and_ping
Diffstat (limited to 'test/functional/p2p_sendheaders.py')
-rwxr-xr-xtest/functional/p2p_sendheaders.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/p2p_sendheaders.py b/test/functional/p2p_sendheaders.py
index 161b67e6d0..e543e647f2 100755
--- a/test/functional/p2p_sendheaders.py
+++ b/test/functional/p2p_sendheaders.py
@@ -307,8 +307,7 @@ class SendHeadersTest(BitcoinTestFramework):
new_block.solve()
test_node.send_header_for_blocks([new_block])
test_node.wait_for_getdata([new_block.sha256])
- test_node.send_message(msg_block(new_block))
- test_node.sync_with_ping() # make sure this block is processed
+ test_node.send_and_ping(msg_block(new_block)) # make sure this block is processed
wait_until(lambda: inv_node.block_announced, timeout=60, lock=mininode_lock)
inv_node.clear_block_announcements()
test_node.clear_block_announcements()