REF: remove obsolete dep; small fixes

This commit is contained in:
Overtorment
2021-09-07 22:00:33 +01:00
parent 4e8ce5e46f
commit d3df6aab05
5 changed files with 437 additions and 431 deletions

View File

@@ -78,7 +78,7 @@ lightning.listChannels({}, function (err, response) {
}
let lightningListChannels = response;
for (let channel of lightningListChannels.channels) {
if (channel.capacity < 0.05 / 100000000) {
if (channel.capacity <= 1000000) {
console.log(
'lncli closechannel',
channel.channel_point.replace(':', ' '),

View File

@@ -54,5 +54,6 @@ let lightning = require('../lightning');
}
console.log('\ncalculatedBalance\n================\n', calculatedBalance, await U.getCalculatedBalance());
console.log('txs:', txs.length, 'userinvoices:', userinvoices.length);
process.exit();
})();