aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_blockchain.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/rpc_blockchain.py
parentb97e3a73498bb49e81039e90e9cb5acdca9123cc (diff)
downloadbitcoin-6112a209828c43930f677c45461339cdf68a56e9.tar.xz
test: replace (send_message + sync_with_ping) with send_and_ping
Diffstat (limited to 'test/functional/rpc_blockchain.py')
-rwxr-xr-xtest/functional/rpc_blockchain.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py
index adf6f1ca4f..a6eaaa4539 100755
--- a/test/functional/rpc_blockchain.py
+++ b/test/functional/rpc_blockchain.py
@@ -315,8 +315,7 @@ class BlockchainTest(BitcoinTestFramework):
def solve_and_send_block(prevhash, height, time):
b = create_block(prevhash, create_coinbase(height), time)
b.solve()
- node.p2p.send_message(msg_block(b))
- node.p2p.sync_with_ping()
+ node.p2p.send_and_ping(msg_block(b))
return b
b21f = solve_and_send_block(int(b20hash, 16), 21, b20['time'] + 1)