Skip to content

Commit 5bf245b

Browse files
committed
partial bitcoin#26448: fix intermittent failure in p2p_sendtxrcncl.py
contains: - 74d9753 (changes to `test_node.py`)
1 parent b7c0030 commit 5bf245b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/test_framework/test_node.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,10 @@ def add_outbound_p2p_connection(self, p2p_conn, *, wait_for_verack=True, p2p_idx
651651
652652
This method adds the p2p connection to the self.p2ps list and returns
653653
the connection to the caller.
654+
655+
p2p_idx must be different for simultaneously connected peers. When reusing it for the next peer
656+
after disconnecting the previous one, it is necessary to wait for the disconnect to finish to avoid
657+
a race condition.
654658
"""
655659

656660
def addconnection_callback(address, port):

0 commit comments

Comments
 (0)