rpc: remove localhost override for test suite, regtest
This commit is contained in:
parent
73efa84b48
commit
5a436b9673
2 changed files with 2 additions and 4 deletions
|
|
@ -128,9 +128,7 @@ class BitcoinRPCClient(RPCClient, metaclass=AsyncInit):
|
|||
|
||||
super().__init__(
|
||||
cfg = cfg,
|
||||
host = (
|
||||
'localhost' if cfg.test_suite or cfg.network == 'regtest'
|
||||
else (proto.rpc_host or cfg.rpc_host or 'localhost')),
|
||||
host = proto.rpc_host or cfg.rpc_host or 'localhost',
|
||||
port = daemon.rpc_port)
|
||||
|
||||
self.set_auth()
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class EthereumRPCClient(RPCClient, metaclass=AsyncInit):
|
|||
|
||||
super().__init__(
|
||||
cfg = cfg,
|
||||
host = 'localhost' if cfg.test_suite else (proto.rpc_host or cfg.rpc_host or 'localhost'),
|
||||
host = proto.rpc_host or cfg.rpc_host or 'localhost',
|
||||
port = daemon.rpc_port)
|
||||
|
||||
await self.set_backend_async(backend)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue