Skip to content

Commit 10d6150

Browse files
committed
[test] remove confusing p2p property
1 parent 549d30f commit 10d6150

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/functional/test_framework/test_node.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -542,15 +542,6 @@ def add_p2p_connection(self, p2p_conn, *, wait_for_verack=True, **kwargs):
542542

543543
return p2p_conn
544544

545-
@property
546-
def p2p(self):
547-
"""Return the first p2p connection
548-
549-
Convenience property - most tests only use a single p2p connection to each
550-
node, so this saves having to write node.p2ps[0] many times."""
551-
assert self.p2ps, self._node_msg("No p2p connection")
552-
return self.p2ps[0]
553-
554545
def num_test_p2p_connections(self):
555546
"""Return number of test framework p2p connections to the node."""
556547
return len([peer for peer in self.getpeerinfo() if peer['subver'] == MY_SUBVERSION])

0 commit comments

Comments
 (0)