more logs
This commit is contained in:
parent
845b7a60c6
commit
d83f1e6074
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ export default class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async PayInvoice(userId: string, req: Types.PayInvoiceRequest, linkedApplication: Application): Promise<Types.PayInvoiceResponse> {
|
async PayInvoice(userId: string, req: Types.PayInvoiceRequest, linkedApplication: Application): Promise<Types.PayInvoiceResponse> {
|
||||||
this.log("paying invoice", req.invoice)
|
this.log("paying invoice", req.invoice, "for user", userId, "with amount", req.amount)
|
||||||
const decoded = await this.lnd.DecodeInvoice(req.invoice)
|
const decoded = await this.lnd.DecodeInvoice(req.invoice)
|
||||||
if (decoded.numSatoshis !== 0 && req.amount !== 0) {
|
if (decoded.numSatoshis !== 0 && req.amount !== 0) {
|
||||||
throw new Error("invoice has value, do not provide amount the the request")
|
throw new Error("invoice has value, do not provide amount the the request")
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ export default class HtlcTracker {
|
||||||
return this.incrementReceiveFailures(incomingChannelId)
|
return this.incrementReceiveFailures(incomingChannelId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.log("unknown htlc event type for failure event")
|
this.log("unknown htlc event type for failure event", eventType)
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSuccess = ({ eventType, outgoingHtlcId, incomingHtlcId }: EventInfo) => {
|
handleSuccess = ({ eventType, outgoingHtlcId, incomingHtlcId }: EventInfo) => {
|
||||||
|
|
@ -104,7 +104,7 @@ export default class HtlcTracker {
|
||||||
if (this.deleteMapEntry(incomingHtlcId, this.pendingReceiveHtlcs) !== null) return
|
if (this.deleteMapEntry(incomingHtlcId, this.pendingReceiveHtlcs) !== null) return
|
||||||
if (this.deleteMapEntry(outgoingHtlcId, this.pendingForwardHtlcs) !== null) return
|
if (this.deleteMapEntry(outgoingHtlcId, this.pendingForwardHtlcs) !== null) return
|
||||||
} else {
|
} else {
|
||||||
this.log("unknown htlc event type for success event")
|
this.log("unknown htlc event type for success event", eventType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue