File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -3328,14 +3328,7 @@ impl<Signer: Sign> Channel<Signer> {
3328
3328
3329
3329
/// Allowed in any state (including after shutdown)
3330
3330
pub fn get_announced_htlc_max_msat ( & self ) -> u64 {
3331
- return cmp:: min (
3332
- // Upper bound by capacity. We make it a bit less than full capacity to prevent attempts
3333
- // to use full capacity. This is an effort to reduce routing failures, because in many cases
3334
- // channel might have been used to route very small values (either by honest users or as DoS).
3335
- self . channel_value_satoshis * 1000 * 9 / 10 ,
3336
-
3337
- Channel :: < Signer > :: get_holder_max_htlc_value_in_flight_msat ( self . channel_value_satoshis )
3338
- ) ;
3331
+ Channel :: < Signer > :: get_holder_max_htlc_value_in_flight_msat ( self . channel_value_satoshis )
3339
3332
}
3340
3333
3341
3334
/// Allowed in any state (including after shutdown)
You can’t perform that action at this time.
0 commit comments