aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgzhao408 <[email protected]>2020-09-03 18:21:32 -0700
committergzhao408 <[email protected]>2020-09-10 07:39:14 -0700
commit10d61505fe77880d6989115defa5e08417f3de2d (patch)
treed6f7530ddbea42e074181daee3dd380c2d568687
parentscripted-diff: replace p2p with p2ps[0] in p2p_invalid_tx (diff)
downloaddiscoin-10d61505fe77880d6989115defa5e08417f3de2d.tar.xz
discoin-10d61505fe77880d6989115defa5e08417f3de2d.zip
[test] remove confusing p2p property
-rwxr-xr-xtest/functional/test_framework/test_node.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index d03498682..046efe730 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -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])