We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27126a3 commit 48e6990Copy full SHA for 48e6990
lightning/src/ln/channel.rs
@@ -9101,8 +9101,7 @@ impl<SP: Deref> FundedChannel<SP> where
9101
&& info.next_holder_htlc_id == self.context.next_holder_htlc_id
9102
&& info.next_counterparty_htlc_id == self.context.next_counterparty_htlc_id
9103
&& info.feerate == self.context.feerate_per_kw {
9104
- let actual_fee = commit_tx_fee_sat(self.context.feerate_per_kw, counterparty_commitment_tx.nondust_htlcs().len(), self.funding.get_channel_type()) * 1000;
9105
- assert_eq!(actual_fee, info.fee);
+ assert_eq!(commitment_data.stats.total_fee_sat, info.fee);
9106
}
9107
9108
0 commit comments