Skip to content

Commit

Permalink
set request params twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaman committed Dec 22, 2020
1 parent 38b630a commit 3d610c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lndclient/LndClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,10 @@ class LndClient extends SwapClient {
}): lndrouter.SendPaymentRequest => {
const request = new lndrouter.SendPaymentRequest();
if (payReq) {
request.setPaymentHash(Buffer.from(rHash, 'hex'));
request.setAmt(amount);
request.setFinalCltvDelta(finalCltvDelta);

request.setPaymentRequest(payReq);
request.setMaxParts(LndClient.MAX_PARTS);

Expand Down

0 comments on commit 3d610c3

Please sign in to comment.