Skip to content

Commit

Permalink
try ignoring payreq
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaman committed Dec 18, 2020
1 parent a0d7114 commit 1ab79d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/lndclient/LndClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ class LndClient extends SwapClient {
amount,
finalCltvDelta,
cltvLimit,
payReq,
// payReq,
}: {
rHash: string;
destination: string;
Expand All @@ -727,6 +727,7 @@ class LndClient extends SwapClient {
payReq?: string;
}): lndrouter.SendPaymentRequest => {
const request = new lndrouter.SendPaymentRequest();
/*
if (payReq) {
request.setPaymentRequest(payReq);
request.setMaxParts(LndClient.MAX_PARTS);
Expand All @@ -736,7 +737,12 @@ class LndClient extends SwapClient {
request.setDest(Buffer.from(destination, 'hex'));
request.setAmt(amount);
request.setFinalCltvDelta(finalCltvDelta);
}
}*/

request.setPaymentHash(Buffer.from(rHash, 'hex'));
request.setDest(Buffer.from(destination, 'hex'));
request.setAmt(amount);
request.setFinalCltvDelta(finalCltvDelta);

if (cltvLimit) {
// cltvLimit is used to enforce the maximum
Expand Down

0 comments on commit 1ab79d2

Please sign in to comment.