Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_bind.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2014-2019 The Bitcoin Core developers | # Copyright (c) 2014-2019 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Test running bitcoind with the -rpcbind and -rpcallowip options.""" | """Test running bitcoind with the -rpcbind and -rpcallowip options.""" | ||||
from platform import uname | |||||
import sys | import sys | ||||
from platform import uname | |||||
from test_framework.netutil import addr_to_hex, all_interfaces, get_bind_addrs, test_ipv6_local | from test_framework.netutil import ( | ||||
addr_to_hex, | |||||
all_interfaces, | |||||
get_bind_addrs, | |||||
test_ipv6_local, | |||||
) | |||||
from test_framework.test_framework import BitcoinTestFramework, SkipTest | from test_framework.test_framework import BitcoinTestFramework, SkipTest | ||||
from test_framework.util import ( | from test_framework.util import ( | ||||
assert_equal, | assert_equal, | ||||
assert_raises_rpc_error, | assert_raises_rpc_error, | ||||
get_rpc_proxy, | get_rpc_proxy, | ||||
rpc_port, | rpc_port, | ||||
rpc_url, | rpc_url, | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |