Skip to content

Commit 06cc0f3

Browse files
authored
Merge pull request #10448 from ziggie1984/bugfix/fix-comment-lsp-heuristic
routerrpc: fix comment in lsp heuristic
2 parents 0cc84d0 + 5580c40 commit 06cc0f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lnrpc/routerrpc/router_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ func (s *Server) probePaymentRequest(ctx context.Context, paymentRequest string,
577577

578578
// If the heuristic indicates an LSP, we filter and group route hints by
579579
// public LSP nodes, then probe each unique LSP separately and return
580-
// the cheapest route.
580+
// the route with the highest fee.
581581
lspGroups, err := prepareLspRouteHints(
582582
hints, *payReq.MilliSat, s.cfg.RouterBackend.HasNode,
583583
)
@@ -802,7 +802,7 @@ func isLSP(routeHints [][]zpay32.HopHint, invoiceTarget []byte,
802802

803803
// LspRouteGroup represents a group of route hints that share the same public
804804
// LSP destination node. This is needed when probing LSPs separately to find
805-
// the cheapest route.
805+
// the route with the highest fee.
806806
type LspRouteGroup struct {
807807
// LspHopHint is the hop hint for the LSP node with worst-case fees and
808808
// CLTV delta.

0 commit comments

Comments
 (0)