Skip to content

Commit 3dc8c01

Browse files
committed
test: remaining replacements of (send_message+sync_with_ping) with send_and_ping
1 parent c897154 commit 3dc8c01

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/functional/p2p_segwit.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ def test_transaction_acceptance(node, p2p, tx, with_witness, accepted, reason=No
125125
- use the getrawmempool rpc to check for acceptance."""
126126
reason = [reason] if reason else []
127127
with node.assert_debug_log(expected_msgs=reason):
128-
p2p.send_message(msg_tx(tx) if with_witness else msg_no_witness_tx(tx))
129-
p2p.sync_with_ping()
128+
p2p.send_and_ping(msg_tx(tx) if with_witness else msg_no_witness_tx(tx))
130129
assert_equal(tx.hash in node.getrawmempool(), accepted)
131130

132131

@@ -137,8 +136,7 @@ def test_witness_block(node, p2p, block, accepted, with_witness=True, reason=Non
137136
- use the getbestblockhash rpc to check for acceptance."""
138137
reason = [reason] if reason else []
139138
with node.assert_debug_log(expected_msgs=reason):
140-
p2p.send_message(msg_block(block) if with_witness else msg_no_witness_block(block))
141-
p2p.sync_with_ping()
139+
p2p.send_and_ping(msg_block(block) if with_witness else msg_no_witness_block(block))
142140
assert_equal(node.getbestblockhash() == block.hash, accepted)
143141

144142

0 commit comments

Comments
 (0)