Merge pull request #3306 from ottosuess/patch-4

invoicesrpc: fix route hint off-by-one-error
This commit is contained in:
Johan T. Halseth authored and GitHub committed 2019-07-12 12:28:15 +02:00
commit f069276970
1 file changed
+1 -1
+1 -1
View File
@@ -268,7 +268,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
for _, channel := range openChannels {
// We'll restrict the number of individual route hints
// to 20 to avoid creating overly large invoices.
if numHints > 20 {
if numHints >= 20 {
break
}