diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-03-06 18:32:20 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-03-06 18:32:38 +0100 |
| commit | d5ce14e2233832e005c0ed749b68e546d9b94bf7 (patch) | |
| tree | bc31eb4ed764f23acd287774161f9f4164e1012d | |
| parent | Merge #9843: Fix segwit getblocktemplate test (diff) | |
| parent | tests: Delete unused function _rpchost_to_args (diff) | |
| download | discoin-d5ce14e2233832e005c0ed749b68e546d9b94bf7.tar.xz discoin-d5ce14e2233832e005c0ed749b68e546d9b94bf7.zip | |
Merge #9929: tests: Delete unused function _rpchost_to_args
99fecf8 tests: Delete unused function _rpchost_to_args (Wladimir J. van der Laan)
Tree-SHA512: 40911d048d3fd7b3ce83e9b3caf2a409d55b47cbe08ea4450a16ca72264300bb12d5ef7dbcf335885975119b5977f949e6879546840064138fb506e24494d849
| -rw-r--r-- | qa/rpc-tests/test_framework/util.py | 20 |
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 59d3be55c..95619dda2 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 |