Skip to content

Commit 85a4892

Browse files
committed
Fix functional/p2p_unrequested_blocks.py file
1 parent 0493c92 commit 85a4892

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/functional/p2p_unrequested_blocks.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ def run_test(self):
170170
tip = next_block
171171

172172
# Now send the block at height 5 and check that it wasn't accepted (missing header)
173-
test_node.send_and_ping(msg_block(all_blocks[1]))
173+
test_node.send_message(msg_block(all_blocks[1]))
174+
test_node.wait_for_disconnect()
174175
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].getblock, all_blocks[1].hash)
175176
assert_raises_rpc_error(-5, "Block not found", self.nodes[0].getblockheader, all_blocks[1].hash)
177+
test_node = self.nodes[0].add_p2p_connection(P2PInterface())
176178

177179
# The block at height 5 should be accepted if we provide the missing header, though
178180
headers_message = msg_headers()

0 commit comments

Comments
 (0)