Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
chore: remove routing hints
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jun 27, 2024
1 parent dbbf636 commit 4f4d1cb
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lnclient/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,21 +262,7 @@ func (svc *LNDService) MakeInvoice(ctx context.Context, amount int64, descriptio
}
}

invoiceRequest := &lnrpc.Invoice{
ValueMsat: amount,
Memo: description,
DescriptionHash: descriptionHashBytes,
Expiry: expiry,
}

if amount != 0 {
// includes routing hints for private channels
invoiceRequest.Private = true
}

resp, err := svc.client.AddInvoice(ctx, invoiceRequest)

// RouteHints
resp, err := svc.client.AddInvoice(ctx, &lnrpc.Invoice{ValueMsat: amount, Memo: description, DescriptionHash: descriptionHashBytes, Expiry: expiry})

if err != nil {
return nil, err
Expand Down

0 comments on commit 4f4d1cb

Please sign in to comment.