You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let commit_tx_fee_sat = SpecTxBuilder {}.commit_tx_fee_sat(feerate_per_kw, nondust_htlc_count + fee_buffer_nondust_htlcs.unwrap_or(0), funding.get_channel_type());
4655
4640
// Subtract any non-HTLC outputs from the local and remote balances
4656
4641
let (local_balance_before_fee_msat, remote_balance_before_fee_msat) = SpecTxBuilder {}.subtract_non_htlc_outputs(
@@ -4763,7 +4748,21 @@ where
4763
4748
broadcaster_dust_limit_sat,
4764
4749
logger,
4765
4750
);
4766
-
debug_assert_eq!(stats, self.build_commitment_stats(funding, local, generated_by_local, None, None), "Caught an inconsistency between `TxBuilder::build_commitment_transaction` and the rest of the `TxBuilder` methods");
4751
+
4752
+
#[cfg(debug_assertions)]
4753
+
{
4754
+
// Make sure that the to_self/to_remote is always either past the appropriate
4755
+
// channel_reserve *or* it is making progress towards it.
4756
+
let mut broadcaster_max_commitment_tx_output = if generated_by_local {
0 commit comments