Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_proxy.py
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
) | ) | ||||
RANGE_BEGIN = PORT_MIN + 2 * PORT_RANGE # Start after p2p and rpc ports | RANGE_BEGIN = PORT_MIN + 2 * PORT_RANGE # Start after p2p and rpc ports | ||||
class ProxyTest(BitcoinTestFramework): | class ProxyTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 4 | self.num_nodes = 4 | ||||
self.setup_clean_chain = True | |||||
def setup_nodes(self): | def setup_nodes(self): | ||||
self.have_ipv6 = test_ipv6_local() | self.have_ipv6 = test_ipv6_local() | ||||
# Create two proxies on different ports | # Create two proxies on different ports | ||||
# ... one unauthenticated | # ... one unauthenticated | ||||
self.conf1 = Socks5Configuration() | self.conf1 = Socks5Configuration() | ||||
self.conf1.addr = ('127.0.0.1', RANGE_BEGIN + (os.getpid() % 1000)) | self.conf1.addr = ('127.0.0.1', RANGE_BEGIN + (os.getpid() % 1000)) | ||||
self.conf1.unauth = True | self.conf1.unauth = True | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |