FIX: undefined amount in pushes to groundcontrol when paying internal invoice

This commit is contained in:
Overtorment 2020-10-20 21:07:26 +01:00
parent 999f0534e0
commit f4b642f3b2

View File

@ -253,7 +253,7 @@ router.post('/payinvoice', async function(req, res) {
memo: info.description,
r_preimage: Buffer.from(preimage, 'hex'),
r_hash: Buffer.from(info.payment_hash, 'hex'),
amt_paid_sat: +info.num_satoshis,
value: +info.num_satoshis,
});
}
await lock.releaseLock();