This commit is contained in:
boufni95 2024-06-25 20:49:25 +02:00
parent f0bae3c0c0
commit eb5f95ec8f

View file

@ -308,7 +308,7 @@ export class VoltageLSP extends LSP {
const invoice = await this.lnd.NewInvoice(this.settings.channelThreshold, "open channel", 60 * 60) const invoice = await this.lnd.NewInvoice(this.settings.channelThreshold, "open channel", 60 * 60)
const res = await this.proposal(invoice.payRequest, fee.id) const res = await this.proposal(invoice.payRequest, fee.id)
this.log("proposal res", res) this.log("proposal res", res, fee.id)
const decoded = await this.lnd.DecodeInvoice(res.jit_bolt11) const decoded = await this.lnd.DecodeInvoice(res.jit_bolt11)
if (decoded.numSatoshis !== this.settings.channelThreshold + feeSats) { if (decoded.numSatoshis !== this.settings.channelThreshold + feeSats) {
this.log("invoice of amount", decoded.numSatoshis, "does not match expected amount of", this.settings.channelThreshold + feeSats) this.log("invoice of amount", decoded.numSatoshis, "does not match expected amount of", this.settings.channelThreshold + feeSats)