From aca47a23e95d741097295e382512e8e612739bda Mon Sep 17 00:00:00 2001 From: Overtorment Date: Thu, 28 Oct 2021 14:25:51 +0100 Subject: [PATCH] ref --- scripts/process-locked-payments.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/process-locked-payments.js b/scripts/process-locked-payments.js index 9b5d4148..8b770f6c 100644 --- a/scripts/process-locked-payments.js +++ b/scripts/process-locked-payments.js @@ -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_', '');