Add global fee settings from config.js

This commit is contained in:
xraid
2021-07-02 13:27:18 +02:00
committed by Overtorment
parent d3df6aab05
commit 957d6c5951
5 changed files with 23 additions and 15 deletions

View File

@@ -50,7 +50,7 @@ let lightning = require('../lightning');
let locked = await U.getLockedPayments();
for (let loc of locked) {
console.log('-', loc.amount + /* fee limit */ Math.floor(loc.amount * 0.01), new Date(loc.timestamp * 1000).toString(), '[locked]');
console.log('-', loc.amount + /* fee limit */ Math.floor(loc.amount * config.defaultForwardReserveFee), new Date(loc.timestamp * 1000).toString(), '[locked]');
}
console.log('\ncalculatedBalance\n================\n', calculatedBalance, await U.getCalculatedBalance());