From 4a4677781f68fec97a7eed1ea6ff933fa8b13d2e Mon Sep 17 00:00:00 2001 From: Shahana Farooqui Date: Mon, 16 Sep 2019 21:31:41 -0400 Subject: [PATCH] Adding LN_IMPLEMENTATION for env variables Adding LN_IMPLEMENTATION for env variables --- connect.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/connect.js b/connect.js index d36ba25f..5743ad65 100644 --- a/connect.js +++ b/connect.js @@ -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) {