@@ -917,7 +917,7 @@ impl<Signer: Sign> Channel<Signer> {
917
917
return Err ( APIError :: APIMisuseError { err : format ! ( "Holder selected channel reserve below implemention limit dust_limit_satoshis {}" , holder_selected_channel_reserve_satoshis) } ) ;
918
918
}
919
919
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 ) ;
921
921
922
922
let value_to_self_msat = channel_value_satoshis * 1000 - push_msat;
923
923
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> {
1064
1064
// We generally don't care too much if they set the feerate to something very high, but it
1065
1065
// could result in the channel being useless due to everything being dust.
1066
1066
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 ) ;
1068
1068
if feerate_per_kw as u64 > upper_limit {
1069
1069
return Err ( ChannelError :: Close ( format ! ( "Peer's feerate much too high. Actual: {}. Our expected upper limit: {}" , feerate_per_kw, upper_limit) ) ) ;
1070
1070
}
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 ) ;
1072
1072
// Some fee estimators round up to the next full sat/vbyte (ie 250 sats per kw), causing
1073
1073
// occasional issues with feerate disagreements between an initiator that wants a feerate
1074
1074
// 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> {
4022
4022
// Propose a range from our current Background feerate to our Normal feerate plus our
4023
4023
// force_close_avoidance_max_fee_satoshis.
4024
4024
// 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 ) ;
4027
4027
let mut proposed_max_feerate = if self . is_outbound ( ) { normal_feerate } else { u32:: max_value ( ) } ;
4028
4028
4029
4029
// The spec requires that (when the channel does not have anchors) we only send absolute
0 commit comments