Skip to content

Commit e73ec4b

Browse files
authored
feat(lnd): update to v0.7.1-beta (#1141)
1 parent 01a31e5 commit e73ec4b

File tree

13 files changed

+919
-165
lines changed

13 files changed

+919
-165
lines changed

β€Žlib/lndclient/LndClient.tsβ€Ž

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ class LndClient extends SwapClient {
528528
const request = new lndrpc.QueryRoutesRequest();
529529
request.setAmt(amount);
530530
request.setFinalCltvDelta(finalCltvDelta);
531-
request.setNumRoutes(1);
532531
request.setPubKey(destination);
533532
const fee = new lndrpc.FeeLimit();
534533
fee.setFixed(Math.floor(MAXFEE * request.getAmt()));
@@ -634,10 +633,9 @@ class LndClient extends SwapClient {
634633
if (!this.invoices) {
635634
throw errors.LND_IS_UNAVAILABLE(this.status);
636635
}
637-
const paymentHash = new lndrpc.PaymentHash();
638-
// TODO: use RHashStr when bug fixed in lnd - https://github.com/lightningnetwork/lnd/pull/3019
639-
paymentHash.setRHash(hexToUint8Array(rHash));
640-
const invoiceSubscription = this.invoices.subscribeSingleInvoice(paymentHash, this.meta);
636+
const request = new lndinvoices.SubscribeSingleInvoiceRequest();
637+
request.setRHash(hexToUint8Array(rHash));
638+
const invoiceSubscription = this.invoices.subscribeSingleInvoice(request, this.meta);
641639
const deleteInvoiceSubscription = () => {
642640
invoiceSubscription.removeAllListeners();
643641
this.invoiceSubscriptions.delete(rHash);

β€Žlib/proto/lndinvoices_grpc_pb.d.tsβ€Ž

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/proto/lndinvoices_grpc_pb.jsβ€Ž

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/proto/lndinvoices_pb.d.tsβ€Ž

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/proto/lndinvoices_pb.jsβ€Ž

Lines changed: 167 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žlib/proto/lndrpc_grpc_pb.jsβ€Ž

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)