merge bitcoin#29511: Fix intermittent failure in rpc_net.py --v2transport

This commit is contained in:
Kittywhiskers Van Gogh 2024-02-29 10:39:40 +05:30
parent 54972e8fa0
commit 062aaf11e4
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -115,6 +115,8 @@ class NetTest(DashTestFramework):
no_version_peer_conntime = self.mocktime no_version_peer_conntime = self.mocktime
with self.nodes[0].assert_debug_log([f"Added connection peer={no_version_peer_id}"]): 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) 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 = self.nodes[0].getpeerinfo()[no_version_peer_id]
peer_info.pop("addr") peer_info.pop("addr")
peer_info.pop("addrbind") peer_info.pop("addrbind")