@@ -917,7 +917,7 @@ impl<Signer: Sign> Channel<Signer> {
917917 return Err ( APIError :: APIMisuseError { err : format ! ( "Holder selected channel reserve below implemention limit dust_limit_satoshis {}" , holder_selected_channel_reserve_satoshis) } ) ;
918918 }
919919
920- let feerate = fee_estimator. get_est_sat_per_1000_weight ( ConfirmationTarget :: Normal ) ;
920+ let feerate = fee_estimator. bounded_sat_per_1000_weight ( ConfirmationTarget :: Normal ) ;
921921
922922 let value_to_self_msat = channel_value_satoshis * 1000 - push_msat;
923923 let commitment_tx_fee = Self :: commit_tx_fee_msat ( feerate, MIN_AFFORDABLE_HTLC_COUNT , opt_anchors) ;
@@ -1064,11 +1064,11 @@ impl<Signer: Sign> Channel<Signer> {
10641064 // We generally don't care too much if they set the feerate to something very high, but it
10651065 // could result in the channel being useless due to everything being dust.
10661066 let upper_limit = cmp:: max ( 250 * 25 ,
1067- fee_estimator. get_est_sat_per_1000_weight ( ConfirmationTarget :: HighPriority ) as u64 * 10 ) ;
1067+ fee_estimator. bounded_sat_per_1000_weight ( ConfirmationTarget :: HighPriority ) as u64 * 10 ) ;
10681068 if feerate_per_kw as u64 > upper_limit {
10691069 return Err ( ChannelError :: Close ( format ! ( "Peer's feerate much too high. Actual: {}. Our expected upper limit: {}" , feerate_per_kw, upper_limit) ) ) ;
10701070 }
1071- let lower_limit = fee_estimator. get_est_sat_per_1000_weight ( ConfirmationTarget :: Background ) ;
1071+ let lower_limit = fee_estimator. bounded_sat_per_1000_weight ( ConfirmationTarget :: Background ) ;
10721072 // Some fee estimators round up to the next full sat/vbyte (ie 250 sats per kw), causing
10731073 // occasional issues with feerate disagreements between an initiator that wants a feerate
10741074 // of 1.1 sat/vbyte and a receiver that wants 1.1 rounded up to 2. Thus, we always add 250
@@ -4022,8 +4022,8 @@ impl<Signer: Sign> Channel<Signer> {
40224022 // Propose a range from our current Background feerate to our Normal feerate plus our
40234023 // force_close_avoidance_max_fee_satoshis.
40244024 // If we fail to come to consensus, we'll have to force-close.
4025- let mut proposed_feerate = fee_estimator. get_est_sat_per_1000_weight ( ConfirmationTarget :: Background ) ;
4026- let normal_feerate = fee_estimator. get_est_sat_per_1000_weight ( ConfirmationTarget :: Normal ) ;
4025+ let mut proposed_feerate = fee_estimator. bounded_sat_per_1000_weight ( ConfirmationTarget :: Background ) ;
4026+ let normal_feerate = fee_estimator. bounded_sat_per_1000_weight ( ConfirmationTarget :: Normal ) ;
40274027 let mut proposed_max_feerate = if self . is_outbound ( ) { normal_feerate } else { u32:: max_value ( ) } ;
40284028
40294029 // The spec requires that (when the channel does not have anchors) we only send absolute
0 commit comments