test: replace (send_message + sync_with_ping) with send_and_ping

This commit is contained in:
Jon Atack committed 2020-04-01 17:30:02 +02:00
1 parent b97e3a7349
commit 6112a20982
8 files changed
+27 -56

No files matched your search

+1 -2
View File
@@ -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)