Adding LN_IMPLEMENTATION for env variables

Adding LN_IMPLEMENTATION for env variables
This commit is contained in:
Shahana Farooqui 2019-09-16 21:31:41 -04:00
parent 165f81bacb
commit 4a4677781f

View file

@ -210,6 +210,14 @@ connect.validateSingleNodeConfig = (config) => {
}
}
if(undefined !== process.env.LN_IMPLEMENTATION) {
common.ln_implementation = process.env.LN_IMPLEMENTATION;
} else if (config.lnImplementation && config.lnImplementation !== '') {
common.ln_implementation = config.lnImplementation;
} else {
common.ln_implementation = 'LND';
}
if (undefined !== process.env.RTL_PASS) {
common.rtl_pass = process.env.RTL_PASS;
} else if (config.Authentication.rtlPassHashed !== '' && undefined !== config.Authentication.rtlPassHashed) {