Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(lnd): use default cltv expiriy if not set in invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed May 15, 2020
1 parent 195688c commit ecc22a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/reducers/payment/utils.js
Expand Up @@ -175,7 +175,7 @@ export const prepareBolt11Probe = (payReq, feeLimit) => {
dest: Buffer.from(pubkey, 'hex'),
feeLimit: feeLimit ? { fixed: feeLimit } : null,
amtMsat: millisatoshis,
finalCltvDelta: getTag(invoice, 'min_final_cltv_expiry'),
finalCltvDelta: getTag(invoice, 'min_final_cltv_expiry') ?? DEFAULT_CLTV_DELTA,
}
}

Expand Down

0 comments on commit ecc22a8

Please sign in to comment.