merge changes

This commit is contained in:
Alex Bosworth 2024-07-15 12:42:26 -07:00
parent 4fe8be5cd9
commit 07df2b5bd5
No known key found for this signature in database
GPG key ID: E80D2F3F311FD87E
2 changed files with 7 additions and 2 deletions

View file

@ -271,10 +271,14 @@ module.exports = (args, cbk) => {
return cbk(null, {id: args.recovery});
}
if (!getQuote.response || !getQuote.response.payment || !getQuote.response.payment.bolt11) {
if (!getQuote.response || !getQuote.response.payment) {
return cbk([503, 'UnexpectedMissingQuoteInLsps1OpenQuoteResponse']);
}
if (!getQuote.response.payment.bolt11) {
return cbk([503, 'UnexpectedMissingBolt11InLsps1OpenQuoteResponse']);
}
if (!getQuote.response.order_id) {
return cbk([503, 'UnexpectedAbsentOrderIdInLsps1OpenQuoteResponse']);
}

View file

@ -447,6 +447,7 @@ module.exports = (args, cbk) => {
}
const confTarget = message.params.funding_confirms_within_blocks;
const requiredConfs = message.params.required_channel_confirmations;
const response = stringify({
id: message.id,
@ -470,7 +471,7 @@ module.exports = (args, cbk) => {
state: paymentStateExpectedPayment,
},
},
required_channel_confirmations: message.params.required_channel_confirmations,
required_channel_confirmations: requiredConfs,
token: String(),
},
});