mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Adding LN_IMPLEMENTATION for env variables
Adding LN_IMPLEMENTATION for env variables
This commit is contained in:
parent
165f81bacb
commit
4a4677781f
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue