This commit is contained in:
Overtorment 2021-10-28 14:25:51 +01:00
parent 53361d2e3a
commit aca47a23e9
No known key found for this signature in database
GPG Key ID: AB15F43F78CCBC06
1 changed files with 1 additions and 3 deletions

View File

@ -3,7 +3,7 @@
* sentout payments from LND. If locked payment is in there we moe locked payment to array of real payments for the user
* (it is effectively spent coins by user), if not - we attempt to pay it again (if it is not too old).
*/
import { User, Lock, Paym } from '../class/';
import { User, Paym } from '../class/';
const config = require('../config');
/****** START SET FEES FROM CONFIG AT STARTUP ******/
@ -12,7 +12,6 @@ global.forwardFee = config.forwardReserveFee || 0.01;
global.internalFee = config.intraHubFee || 0.003;
/****** END SET FEES FROM CONFIG AT STARTUP ******/
const fs = require('fs');
var Redis = require('ioredis');
var redis = new Redis(config.redis);
@ -28,7 +27,6 @@ let lightning = require('../lightning');
let listPayments = await tempPaym.listPayments();
// DEBUG let listPayments = JSON.parse(fs.readFileSync('listpayments.txt').toString('ascii'));
console.log('done', 'got', listPayments['payments'].length, 'payments');
fs.writeFileSync('listPayments.json', JSON.stringify(listPayments['payments'], null, 2));
for (let key of keys) {
const userid = key.replace('locked_payments_for_', '');