Skip to content

Commit

Permalink
invoicesrpc: included MaxNumPaths to be used on BuildBlindedPaymentPaths
Browse files Browse the repository at this point in the history
  • Loading branch information
MPins committed Dec 5, 2024
1 parent fa309c9 commit ebacb86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lnrpc/invoicesrpc/addinvoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ type BlindedPathConfig struct {
// less than this.
MinNumPathHops uint8

// MaxNumPaths is the maximum number of blinded paths to select.
MaxNumPaths uint8

// DefaultDummyHopPolicy holds the default policy values to use for
// dummy hops in a blinded path in the case where they cant be derived
// through other means.
Expand Down Expand Up @@ -542,6 +545,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
},
MinNumHops: blindCfg.MinNumPathHops,
DefaultDummyHopPolicy: blindCfg.DefaultDummyHopPolicy,
MaxNumPaths: blindCfg.MaxNumPaths,
},
)
if err != nil {
Expand Down

0 comments on commit ebacb86

Please sign in to comment.