We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5cd59 commit 8b0d0c6Copy full SHA for 8b0d0c6
lightning/src/routing/router.rs
@@ -951,10 +951,10 @@ impl<'a> CandidateRouteHop<'a> {
951
liquidity_msat: details.next_outbound_htlc_limit_msat,
952
},
953
CandidateRouteHop::PublicHop { info, .. } => info.effective_capacity(),
954
- CandidateRouteHop::PrivateHop { hint } => {
955
- hint.htlc_maximum_msat.map_or(EffectiveCapacity::Infinite,
956
- |max| EffectiveCapacity::HintMaxHTLC { amount_msat: max })
957
- },
+ CandidateRouteHop::PrivateHop { hint: RouteHintHop { htlc_maximum_msat: Some(max), .. }} =>
+ EffectiveCapacity::HintMaxHTLC { amount_msat: *max },
+ CandidateRouteHop::PrivateHop { hint: RouteHintHop { htlc_maximum_msat: None, .. }} =>
+ EffectiveCapacity::Infinite,
958
}
959
960
0 commit comments