Skip to content

Commit

Permalink
fix: use private channels in invoice routing
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Aug 2, 2024
1 parent cc0f9b8 commit 731b4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnclient/lnd/lnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (svc *LNDService) MakeInvoice(ctx context.Context, amount int64, descriptio
expiry = lnclient.DEFAULT_INVOICE_EXPIRY
}

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

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

0 comments on commit 731b4bf

Please sign in to comment.