Skip to content

Commit d73bb08

Browse files
author
cdmoss
committed
add limit of 3 route hints added to invoice
1 parent d4dc05b commit d73bb08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning-invoice/src/utils.rs

+1
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ fn filter_channels<L: Deref>(
562562
include_channel
563563
})
564564
.map(route_hint_from_channel)
565+
.take(3)
565566
.collect::<Vec<RouteHint>>()
566567
}
567568

0 commit comments

Comments
 (0)