File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4469,11 +4469,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
44694469
44704470 #[allow(deprecated)] // TODO: Remove once balance_msat is removed.
44714471 AvailableBalances {
4472- inbound_capacity_msat: cmp::max(funding.get_value_satoshis() as i64 * 1000
4473- - funding.value_to_self_msat as i64
4474- - htlc_stats.pending_inbound_htlcs_value_msat as i64
4475- - funding.holder_selected_channel_reserve_satoshis as i64 * 1000,
4476- 0) as u64,
4472+ inbound_capacity_msat: remote_balance_before_fee_msat.saturating_sub(funding.holder_selected_channel_reserve_satoshis * 1000),
44774473 outbound_capacity_msat,
44784474 next_outbound_htlc_limit_msat: available_capacity_msat,
44794475 next_outbound_htlc_minimum_msat,
You can’t perform that action at this time.
0 commit comments