Skip to content

Commit e289c65

Browse files
Read LN_IMPLEMENTATION from environment (#1460)
Closes #1429
1 parent 295fce0 commit e289c65

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

backend/utils/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class ConfigService {
146146
this.common.nodes[idx] = { settings: { blockExplorerUrl: '' }, authentication: {} };
147147
this.common.nodes[idx].index = node.index;
148148
this.common.nodes[idx].lnNode = node.lnNode;
149-
this.common.nodes[idx].lnImplementation = (process?.env?.lnImplementation) ? process?.env?.lnImplementation : node.lnImplementation ? node.lnImplementation : 'LND';
149+
this.common.nodes[idx].lnImplementation = (process?.env?.LN_IMPLEMENTATION) ? process?.env?.LN_IMPLEMENTATION : node.lnImplementation ? node.lnImplementation : 'LND';
150150
if (this.common.nodes[idx].lnImplementation === 'CLT') {
151151
this.common.nodes[idx].lnImplementation = 'CLN';
152152
}

docker/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ docker build -t rtl:${RTL_VERSION} -f dockerfiles/Dockerfile .
7474
Create an environment file with your required configurations. Sample .env:
7575
```
7676
RTL_CONFIG_PATH=/RTLConfig
77+
LN_IMPLEMENTATION=LND
7778
MACAROON_PATH=/LNDMacaroon
7879
LN_SERVER_URL=https://host.docker.internal:8080
7980

server/utils/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class ConfigService {
150150
this.common.nodes[idx] = { settings: { blockExplorerUrl: '' }, authentication: {} };
151151
this.common.nodes[idx].index = node.index;
152152
this.common.nodes[idx].lnNode = node.lnNode;
153-
this.common.nodes[idx].lnImplementation = (process?.env?.lnImplementation) ? process?.env?.lnImplementation : node.lnImplementation ? node.lnImplementation : 'LND';
153+
this.common.nodes[idx].lnImplementation = (process?.env?.LN_IMPLEMENTATION) ? process?.env?.LN_IMPLEMENTATION : node.lnImplementation ? node.lnImplementation : 'LND';
154154
if (this.common.nodes[idx].lnImplementation === 'CLT') { this.common.nodes[idx].lnImplementation = 'CLN'; }
155155
switch (this.common.nodes[idx].lnImplementation) {
156156
case 'CLN':

0 commit comments

Comments
 (0)