partial bitcoin#23443: Erlay support signaling

contains:
- e56d1d2a (changes to `test_node.py`)
This commit is contained in:
Kittywhiskers Van Gogh 2022-09-19 17:11:32 +03:00
parent c709df74cc
commit b7c0030d3d
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -645,7 +645,7 @@ class TestNode():
return p2p_conn 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 """Add an outbound p2p connection from node. Must be an
"outbound-full-relay", "block-relay-only", "addr-fetch" or "feeler" connection. "outbound-full-relay", "block-relay-only", "addr-fetch" or "feeler" connection.
@ -667,6 +667,7 @@ class TestNode():
p2p_conn.wait_for_connect() p2p_conn.wait_for_connect()
self.p2ps.append(p2p_conn) self.p2ps.append(p2p_conn)
if wait_for_verack:
p2p_conn.wait_for_verack() p2p_conn.wait_for_verack()
p2p_conn.sync_with_ping() p2p_conn.sync_with_ping()