Skip to content

Commit

Permalink
Fix functional/p2p_unrequested_blocks.py file
Browse files Browse the repository at this point in the history
  • Loading branch information
janus committed Sep 8, 2024
1 parent 0493c92 commit 85a4892
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/p2p_unrequested_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,11 @@ def run_test(self):
tip = next_block

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

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

0 comments on commit 85a4892

Please sign in to comment.