From 062aaf11e4530e3c7935d64567af460e105d1d60 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Thu, 29 Feb 2024 10:39:40 +0530 Subject: [PATCH] merge bitcoin#29511: Fix intermittent failure in rpc_net.py --v2transport --- test/functional/rpc_net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/rpc_net.py b/test/functional/rpc_net.py index 1fed96ef5f..5cc1dc617b 100755 --- a/test/functional/rpc_net.py +++ b/test/functional/rpc_net.py @@ -115,6 +115,8 @@ class NetTest(DashTestFramework): no_version_peer_conntime = self.mocktime with self.nodes[0].assert_debug_log([f"Added connection peer={no_version_peer_id}"]): no_version_peer = self.nodes[0].add_p2p_connection(P2PInterface(), send_version=False, wait_for_verack=False) + if self.options.v2transport: + self.wait_until(lambda: self.nodes[0].getpeerinfo()[no_version_peer_id]["transport_protocol_type"] == "v2") peer_info = self.nodes[0].getpeerinfo()[no_version_peer_id] peer_info.pop("addr") peer_info.pop("addrbind")