mirror of
https://github.com/alexbosworth/balanceofsatoshis.git
synced 2026-08-13 12:33:37 +02:00
merge changes
This commit is contained in:
parent
4fe8be5cd9
commit
07df2b5bd5
2 changed files with 7 additions and 2 deletions
|
|
@ -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']);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue