2
0
mirror of https://github.com/Ride-The-Lightning/RTL synced 2024-11-03 23:15:24 +00:00

Added Index to Multi-Node conf

Added Index to Multi-Node conf
This commit is contained in:
saubyk 2019-03-29 18:43:51 -04:00
parent 413a6b8561
commit a2819d820f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
[
{
"Index": "1",
"LNNode": "LND Testnet # 1",
"LNImplementation": "LND",
"Authentication": {
@ -27,6 +28,7 @@
}
},
{
"Index": "2",
"LNNode": "LND Mainnet # 1",
"LNImplementation": "LND",
"Authentication": {

View File

@ -98,7 +98,7 @@ exports.getMultiNodeConfig = (req, res, next) => {
const multiNodeConfig = require('../RTL-Multi-Node-Conf.json');
var nodeinfo = [];
for(var key in multiNodeConfig)
nodeinfo.push({"LNNode":multiNodeConfig[key].LNNode, "LNImpl":multiNodeConfig[key].LNImplementation});
nodeinfo.push({"Index":multiNodeConfig[key].Index, "LNNode":multiNodeConfig[key].LNNode, "LNImpl":multiNodeConfig[key].LNImplementation});
res.status(200).json({nodes:nodeinfo});
}
});