Skip to content

Commit

Permalink
[test] remove confusing p2p property
Browse files Browse the repository at this point in the history
  • Loading branch information
glozow committed Sep 10, 2020
1 parent 549d30f commit 10d6150
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/functional/test_framework/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,15 +542,6 @@ def add_p2p_connection(self, p2p_conn, *, wait_for_verack=True, **kwargs):

return p2p_conn

@property
def p2p(self):
"""Return the first p2p connection
Convenience property - most tests only use a single p2p connection to each
node, so this saves having to write node.p2ps[0] many times."""
assert self.p2ps, self._node_msg("No p2p connection")
return self.p2ps[0]

def num_test_p2p_connections(self):
"""Return number of test framework p2p connections to the node."""
return len([peer for peer in self.getpeerinfo() if peer['subver'] == MY_SUBVERSION])
Expand Down

0 comments on commit 10d6150

Please sign in to comment.