File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -435,10 +435,10 @@ fn filter_channels(channels: Vec<ChannelDetails>, min_inbound_capacity_msat: Opt
435
435
htlc_minimum_msat: channel. inbound_htlc_minimum_msat,
436
436
htlc_maximum_msat: channel. inbound_htlc_maximum_msat, } ] )
437
437
} ;
438
- // If all channels are private, return the route hint for the highest inbound capacity channel
439
- // per counterparty node. If channels with an higher inbound capacity than the
440
- // min_inbound_capacity exists, filter out the channels with a lower capacity than that.
441
- // Further, if we are connected to our peer for any channels, only return those .
438
+ // If all channels are private, prefer to return route hints which have a higher capacity than
439
+ // the payment value and where we're currently connected to the channel counterparty.
440
+ // Even if we cannot satisfy both goals, always ensure we include *some* hints, preferring
441
+ // those which meet at least one criteria .
442
442
filtered_channels. into_iter ( )
443
443
. filter ( |( _counterparty_id, channel) | {
444
444
if online_min_capacity_channel_exists {
You can’t perform that action at this time.
0 commit comments