Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_bind.py
Show All 18 Lines | from test_framework.util import ( | ||||
rpc_port, | rpc_port, | ||||
rpc_url, | rpc_url, | ||||
) | ) | ||||
class RPCBindTest(BitcoinTestFramework): | class RPCBindTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.bind_to_localhost_only = False | |||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
def setup_network(self): | def setup_network(self): | ||||
self.add_nodes(self.num_nodes, None) | self.add_nodes(self.num_nodes, None) | ||||
def run_bind_test(self, allow_ips, connect_to, addresses, expected): | def run_bind_test(self, allow_ips, connect_to, addresses, expected): | ||||
''' | ''' | ||||
Start a node with requested rpcallowip and rpcbind parameters, | Start a node with requested rpcallowip and rpcbind parameters, | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |