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 c236c82 commit 7c2fd41Copy full SHA for 7c2fd41
lightning/src/routing/router.rs
@@ -946,7 +946,10 @@ impl<'a> CandidateRouteHop<'a> {
946
liquidity_msat: details.next_outbound_htlc_limit_msat,
947
},
948
CandidateRouteHop::PublicHop { info, .. } => info.effective_capacity(),
949
- CandidateRouteHop::PrivateHop { .. } => EffectiveCapacity::Infinite,
+ CandidateRouteHop::PrivateHop { hint } => {
950
+ hint.htlc_maximum_msat.map_or(EffectiveCapacity::Infinite,
951
+ |amt| EffectiveCapacity::MaximumHTLC { amount_msat: amt })
952
+ }
953
}
954
955
0 commit comments