FIX: fee_limit when paying

This commit is contained in:
Overtorment
2019-03-19 00:11:25 +00:00
parent 067f2aeae4
commit 0fed216b32
3 changed files with 5 additions and 4 deletions

View File

@@ -209,7 +209,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 * 0.005) },
fee_limit: { fixed: Math.floor(info.num_satoshis * 0.005) + 1 },
};
try {
await u.lockFunds(req.body.invoice, info);