aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2022-09-19 17:11:32 +0300
committerGleb Naumenko <naumenko.gs@gmail.com>2022-10-17 12:36:14 +0300
commite56d1d2afdd477be6dd462d838617d385bac5d7b (patch)
tree6e25be8386ea93adee599a7cba922ffe32a05668 /test/functional/test_framework
parentcfcef60779e62bcb81243e0bb8ffc8abb5b5baf5 (diff)
downloadbitcoin-e56d1d2afdd477be6dd462d838617d385bac5d7b.tar.xz
test: Add functional tests for sendtxrcncl message from outbound
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-xtest/functional/test_framework/test_node.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index e35cae006f..2367a9a8fa 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -618,7 +618,7 @@ class TestNode():
return p2p_conn
- def add_outbound_p2p_connection(self, p2p_conn, *, p2p_idx, connection_type="outbound-full-relay", **kwargs):
+ def add_outbound_p2p_connection(self, p2p_conn, *, wait_for_verack=True, p2p_idx, connection_type="outbound-full-relay", **kwargs):
"""Add an outbound p2p connection from node. Must be an
"outbound-full-relay", "block-relay-only", "addr-fetch" or "feeler" connection.
@@ -640,8 +640,9 @@ class TestNode():
p2p_conn.wait_for_connect()
self.p2ps.append(p2p_conn)
- p2p_conn.wait_for_verack()
- p2p_conn.sync_with_ping()
+ if wait_for_verack:
+ p2p_conn.wait_for_verack()
+ p2p_conn.sync_with_ping()
return p2p_conn