REF: force restart upon lnd failure; ADD: mission control in queryRoutes

This commit is contained in:
Overtorment 2021-07-12 15:52:05 +01:00
parent 4e7731ff54
commit e6b1f950f3
2 changed files with 3 additions and 0 deletions

View File

@ -494,6 +494,7 @@ router.get('/queryroutes/:source/:dest/:amt', async function (req, res) {
let request = {
pub_key: req.params.dest,
use_mission_control: true,
amt: req.params.amt,
source_pub_key: req.params.source,
};

View File

@ -14,6 +14,7 @@ function updateLightning() {
lightning.getInfo({}, function (err, info) {
if (err) {
console.error('lnd failure:', err);
process.exit(4);
return;
}
lightningGetInfo = info;
@ -22,6 +23,7 @@ function updateLightning() {
lightning.listChannels({}, function (err, response) {
if (err) {
console.error('lnd failure:', err);
process.exit(4);
return;
}
console.log('updated');