tip invoices now use forwardFee

changed internalFee for tip invoices to forwardFee
This commit is contained in:
lndhub-admin 2021-07-16 22:02:05 +02:00 committed by Overtorment
parent 28dd3a847a
commit 1b1fe8f08b

View File

@ -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);