Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Oct 28, 2021
1 parent 53361d2 commit aca47a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/process-locked-payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ******/
Expand All @@ -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);

Expand All @@ -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_', '');
Expand Down

0 comments on commit aca47a2

Please sign in to comment.