lnd: only set tor.active on enforceTor

This also enables the test scenario 'netnsRegtest' introduced in a
later commit by fixing the following bug:
For unknown reasons, when tor.active=true and tor is not running, lnd
fails with a tor connection error on netns-isolation, but runs fine
without netns-isolation.
This commit is contained in:
Erik Arvstedt 2020-10-29 21:20:26 +01:00
parent 9a931483b9
commit 0cc8caa737
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -25,7 +25,7 @@ let
bitcoin.active=1
bitcoin.node=bitcoind
tor.active=true
${optionalString (cfg.enforceTor) "tor.active=true"}
${optionalString (cfg.tor-socks != null) "tor.socks=${cfg.tor-socks}"}
bitcoind.rpchost=${bitcoindRpcAddress}:${toString bitcoind.rpc.port}