aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-03-06 15:52:25 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-03-06 15:52:25 +0100
commit99fecf80dca1bc06a1e5788137b049de60596746 (patch)
tree91f20f5da78744916f3886e61d0e2e481e9a147d
parent8a3b07529d9c97035c35a724a161376117176f14 (diff)
tests: Delete unused function _rpchost_to_args
This function has been unused ever since the RPC tests no longer use `bitcoin-cli`.
-rw-r--r--qa/rpc-tests/test_framework/util.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py
index 59d3be55c9..95619dda26 100644
--- a/qa/rpc-tests/test_framework/util.py
+++ b/qa/rpc-tests/test_framework/util.py
@@ -306,26 +306,6 @@ def initialize_chain_clean(test_dir, num_nodes):
datadir=initialize_datadir(test_dir, i)
-def _rpchost_to_args(rpchost):
- '''Convert optional IP:port spec to rpcconnect/rpcport args'''
- if rpchost is None:
- return []
-
- match = re.match('(\[[0-9a-fA-f:]+\]|[^:]+)(?::([0-9]+))?$', rpchost)
- if not match:
- raise ValueError('Invalid RPC host spec ' + rpchost)
-
- rpcconnect = match.group(1)
- rpcport = match.group(2)
-
- if rpcconnect.startswith('['): # remove IPv6 [...] wrapping
- rpcconnect = rpcconnect[1:-1]
-
- rv = ['-rpcconnect=' + rpcconnect]
- if rpcport:
- rv += ['-rpcport=' + rpcport]
- return rv
-
def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=None, stderr=None):
"""
Start a bitcoind and return RPC connection to it