Skip to content

Commit

Permalink
try imitating lncli request building
Browse files Browse the repository at this point in the history
  • Loading branch information
sangaman committed Dec 22, 2020
1 parent a0d7114 commit f7c5630
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/lndclient/LndClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,13 @@ class LndClient extends SwapClient {
if (payReq) {
request.setPaymentRequest(payReq);
request.setMaxParts(LndClient.MAX_PARTS);

// lines to match lncli behavior
request.setOutgoingChanIdsList([]);
request.setCltvLimit(0);
request.setTimeoutSeconds(60);
request.setAllowSelfPayment(false);
request.setMaxParts(1);
} else {
// TODO: as of lnd 0.12.0, this won't work as PaymentAddr will be required and the only way to specify it will be with the pay req
request.setPaymentHash(Buffer.from(rHash, 'hex'));
Expand Down

0 comments on commit f7c5630

Please sign in to comment.