From fa7bac94d87a1b25f8b33ebd29ce47bf442f137e Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 12 Mar 2026 14:59:03 +0100 Subject: [PATCH] test: Remove unused wait_for_addr, firstAddrnServices, on_addr Unused after commit be25ac3092b7755e26e1ec6c33a27cd0e3dd9eac --- test/functional/p2p_node_network_limited.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/functional/p2p_node_network_limited.py b/test/functional/p2p_node_network_limited.py index 8140823f58a..8e1062cde2e 100755 --- a/test/functional/p2p_node_network_limited.py +++ b/test/functional/p2p_node_network_limited.py @@ -28,15 +28,9 @@ from test_framework.util import ( NODE_NETWORK_LIMITED_MIN_BLOCKS = 288 class P2PIgnoreInv(P2PInterface): - firstAddrnServices = 0 def on_inv(self, message): # The node will send us invs for other blocks. Ignore them. pass - def on_addr(self, message): - self.firstAddrnServices = message.addrs[0].nServices - def wait_for_addr(self, timeout=5): - test_function = lambda: self.last_message.get("addr") - self.wait_until(test_function, timeout=timeout) def send_getdata_for_block(self, blockhash): getdata_request = msg_getdata() getdata_request.inv.append(CInv(MSG_BLOCK, int(blockhash, 16)))