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

Commit

Permalink
fix(lnd): do not pass paymentHash when sending via paymentRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Apr 12, 2020
1 parent 46f2711 commit 5fcc25c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions renderer/reducers/payment/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config from 'config'
import { decodePayReq, getNodeAlias, getTag, generatePreimage } from '@zap/utils/crypto'
import { decodePayReq, getNodeAlias, generatePreimage } from '@zap/utils/crypto'
import { convert } from '@zap/utils/btc'
import { getIntl } from '@zap/i18n'
import { sha256digest } from '@zap/utils/sha256'
Expand Down Expand Up @@ -118,7 +118,6 @@ export const prepareBolt11Payload = (payReq, amt, feeLimit) => {
return {
...getPaymentConfig(),
paymentRequest: invoice.paymentRequest,
paymentHash: getTag(invoice, 'payment_hash'), // hash is not needed in the payload but store for convienience.
feeLimit: feeLimit ? { fixed: feeLimit } : null,
amt: millisatoshis ? null : amt,
}
Expand Down

0 comments on commit 5fcc25c

Please sign in to comment.