mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
[test] remove confusing p2p property
This commit is contained in:
parent
549d30faf0
commit
10d61505fe
1 changed files with 0 additions and 9 deletions
|
@ -542,15 +542,6 @@ class TestNode():
|
|||
|
||||
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])
|
||||
|
|
Loading…
Add table
Reference in a new issue