Skip to content

Commit d3a8cef

Browse files
committed
Set BITCOIND_RPC_URL env variable in testing framework
1 parent 1a7eb2a commit d3a8cef

File tree

1 file changed

+6
-0
lines changed
  • contrib/pyln-testing/pyln/testing

1 file changed

+6
-0
lines changed

contrib/pyln-testing/pyln/testing/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,12 @@ def start(self, stdin=None, wait_for_initialized=True, stderr_redir=False):
733733
# We can't do this in the constructor because we need a new port on each restart.
734734
self.env['REMOTE_HSMD_ENDPOINT'] = '127.0.0.1:{}'.format(vlsd_port)
735735

736+
# Some of the remote hsmd proxies need a bitcoind RPC connection
737+
self.env['BITCOIND_RPC_URL'] = 'http://{}:{}@localhost:{}'.format(
738+
BITCOIND_CONFIG['rpcuser'],
739+
BITCOIND_CONFIG['rpcpassword'],
740+
BITCOIND_CONFIG['rpcport'])
741+
736742
self.opts['bitcoin-rpcport'] = self.rpcproxy.rpcport
737743
TailableProc.start(self, stdin, stdout_redir=False, stderr_redir=stderr_redir)
738744
if wait_for_initialized:

0 commit comments

Comments
 (0)