mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
pytest: Start the Bitcoin RPC proxy as soon as it is created
Avoids attempting to rebind on restart.
This commit is contained in:
parent
180ea5bb38
commit
a0fc915674
@ -317,6 +317,7 @@ class BitcoinD(TailableProc):
|
||||
def get_proxy(self):
|
||||
proxy = BitcoinRpcProxy(self)
|
||||
self.proxies.append(proxy)
|
||||
proxy.start()
|
||||
return proxy
|
||||
|
||||
def generate_block(self, numblocks=1):
|
||||
@ -384,8 +385,6 @@ class LightningD(TailableProc):
|
||||
return self.cmd_prefix + [self.executable] + opts
|
||||
|
||||
def start(self):
|
||||
self.rpcproxy.start()
|
||||
|
||||
self.opts['bitcoin-rpcport'] = self.rpcproxy.rpcport
|
||||
TailableProc.start(self)
|
||||
self.wait_for_log("Server started with public key")
|
||||
|
Loading…
Reference in New Issue
Block a user