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 = {
|
||||
pub_key: req.params.dest,
|
||||
use_mission_control: true,
|
||||
amt: req.params.amt,
|
||||
source_pub_key: req.params.source,
|
||||
};
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user