REF: force restart upon lnd failure; ADD: mission control in queryRoutes
This commit is contained in:
parent
4e7731ff54
commit
e6b1f950f3
@ -494,6 +494,7 @@ router.get('/queryroutes/:source/:dest/:amt', async function (req, res) {
|
|||||||
|
|
||||||
let request = {
|
let request = {
|
||||||
pub_key: req.params.dest,
|
pub_key: req.params.dest,
|
||||||
|
use_mission_control: true,
|
||||||
amt: req.params.amt,
|
amt: req.params.amt,
|
||||||
source_pub_key: req.params.source,
|
source_pub_key: req.params.source,
|
||||||
};
|
};
|
||||||
|
@ -14,6 +14,7 @@ function updateLightning() {
|
|||||||
lightning.getInfo({}, function (err, info) {
|
lightning.getInfo({}, function (err, info) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('lnd failure:', err);
|
console.error('lnd failure:', err);
|
||||||
|
process.exit(4);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
lightningGetInfo = info;
|
lightningGetInfo = info;
|
||||||
@ -22,6 +23,7 @@ function updateLightning() {
|
|||||||
lightning.listChannels({}, function (err, response) {
|
lightning.listChannels({}, function (err, response) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('lnd failure:', err);
|
console.error('lnd failure:', err);
|
||||||
|
process.exit(4);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('updated');
|
console.log('updated');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user