@@ -1005,7 +1005,7 @@ pub struct ChannelDetails {
1005
1005
/// to use a limit as close as possible to the HTLC limit we can currently send.
1006
1006
///
1007
1007
/// See also [`ChannelDetails::balance_msat`] and [`ChannelDetails::outbound_capacity_msat`].
1008
- pub outbound_htlc_limit_msat : u64 ,
1008
+ pub next_outbound_htlc_limit_msat : u64 ,
1009
1009
/// The available inbound capacity for the remote peer to send HTLCs to us. This does not
1010
1010
/// include any pending HTLCs which are not yet fully resolved (and, thus, whose balance is not
1011
1011
/// available for inclusion in new inbound HTLCs).
@@ -1666,7 +1666,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
1666
1666
let channel_state = self . channel_state . lock ( ) . unwrap ( ) ;
1667
1667
res. reserve ( channel_state. by_id . len ( ) ) ;
1668
1668
for ( channel_id, channel) in channel_state. by_id . iter ( ) . filter ( f) {
1669
- let ( inbound_capacity_msat, outbound_capacity_msat, outbound_htlc_limit_msat ) =
1669
+ let ( inbound_capacity_msat, outbound_capacity_msat, next_outbound_htlc_limit_msat ) =
1670
1670
channel. get_inbound_outbound_available_balance_msat ( ) ;
1671
1671
let balance_msat = channel. get_balance_msat ( ) ;
1672
1672
let ( to_remote_reserve_satoshis, to_self_reserve_satoshis) =
@@ -1690,7 +1690,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
1690
1690
balance_msat,
1691
1691
inbound_capacity_msat,
1692
1692
outbound_capacity_msat,
1693
- outbound_htlc_limit_msat ,
1693
+ next_outbound_htlc_limit_msat ,
1694
1694
user_channel_id : channel. get_user_id ( ) ,
1695
1695
confirmations_required : channel. minimum_depth ( ) ,
1696
1696
force_close_spend_delay : channel. get_counterparty_selected_contest_delay ( ) ,
@@ -5922,7 +5922,7 @@ impl_writeable_tlv_based!(ChannelDetails, {
5922
5922
( 18 , outbound_capacity_msat, required) ,
5923
5923
// Note that by the time we get past the required read above, outbound_capacity_msat will be
5924
5924
// filled in, so we can safely unwrap it here.
5925
- ( 19 , outbound_htlc_limit_msat , ( default_value, outbound_capacity_msat. 0 . unwrap( ) ) ) ,
5925
+ ( 19 , next_outbound_htlc_limit_msat , ( default_value, outbound_capacity_msat. 0 . unwrap( ) ) ) ,
5926
5926
( 20 , inbound_capacity_msat, required) ,
5927
5927
( 22 , confirmations_required, option) ,
5928
5928
( 24 , force_close_spend_delay, option) ,
0 commit comments