up
This commit is contained in:
parent
4ebe2a9072
commit
d40a585bd7
1 changed files with 1 additions and 0 deletions
|
|
@ -308,6 +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)
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue