From 1b1fe8f08bb7e621f66c9f6a1b21857120bfea6e Mon Sep 17 00:00:00 2001 From: lndhub-admin Date: Fri, 16 Jul 2021 22:02:05 +0200 Subject: [PATCH] tip invoices now use forwardFee changed internalFee for tip invoices to forwardFee --- controllers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/api.js b/controllers/api.js index fc8f674..d653e36 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -322,7 +322,7 @@ router.post('/payinvoice', async function (req, res) { let inv = { payment_request: req.body.invoice, amt: info.num_satoshis, // amt is used only for 'tip' invoices - fee_limit: { fixed: Math.floor(info.num_satoshis * internalFee) + 1 }, // fee setting was 0.005 now set as internalFee + fee_limit: { fixed: Math.floor(info.num_satoshis * forwardFee) + 1 }, }; try { await u.lockFunds(req.body.invoice, info);