FIX: more strict balance check (re #8)
This commit is contained in:
@@ -120,7 +120,7 @@ router.post('/payinvoice', async function(req, res) {
|
||||
return errorTryAgainLater(res);
|
||||
}
|
||||
|
||||
let userBalance = await u.getBalance();
|
||||
let userBalance = await u.getCalculatedBalance();
|
||||
|
||||
lightning.decodePayReq({ pay_req: req.body.invoice }, async function(err, info) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user