Skip to content

Commit 15ad1a5

Browse files
ksedgwicdevrandom
authored andcommitted
Set BITCOIND_RPC_URL env variable in testing framework
1 parent 72cb781 commit 15ad1a5

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
@@ -669,6 +669,12 @@ def start(self, stdin=None, stdout=None, stderr=None,
669669
# We can't do this in the constructor because we need a new port on each restart.
670670
self.env['REMOTE_HSMD_ENDPOINT'] = '127.0.0.1:{}'.format(vlsd_port)
671671

672+
# Some of the remote hsmd proxies need a bitcoind RPC connection
673+
self.env['BITCOIND_RPC_URL'] = 'http://{}:{}@localhost:{}'.format(
674+
BITCOIND_CONFIG['rpcuser'],
675+
BITCOIND_CONFIG['rpcpassword'],
676+
BITCOIND_CONFIG['rpcport'])
677+
672678
self.opts['bitcoin-rpcport'] = self.rpcproxy.rpcport
673679
TailableProc.start(self, stdin, stdout, stderr)
674680
if wait_for_initialized:

0 commit comments

Comments
 (0)