FIX: more strict balance check (re #8)

This commit is contained in:
Overtorment
2019-01-21 19:49:19 +00:00
parent f2386f0acf
commit e854626a45
2 changed files with 2 additions and 2 deletions

View File

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