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());
4650
4635
// Subtract any non-HTLC outputs from the local and remote balances
4651
4636
let (local_balance_before_fee_msat, remote_balance_before_fee_msat) = SpecTxBuilder {}.subtract_non_htlc_outputs(
@@ -4758,7 +4743,21 @@ where
4758
4743
broadcaster_dust_limit_sat,
4759
4744
logger,
4760
4745
);
4761
-
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");
4746
+
4747
+
#[cfg(debug_assertions)]
4748
+
{
4749
+
// Make sure that the to_self/to_remote is always either past the appropriate
4750
+
// channel_reserve *or* it is making progress towards it.
4751
+
let mut broadcaster_max_commitment_tx_output = if generated_by_local {
0 commit comments