Skip to content

Commit 48e6990

Browse files
committed
Remove commit_tx_fee_sat in build_commitment_no_state_update
1 parent 27126a3 commit 48e6990

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9101,8 +9101,7 @@ impl<SP: Deref> FundedChannel<SP> where
91019101
&& info.next_holder_htlc_id == self.context.next_holder_htlc_id
91029102
&& info.next_counterparty_htlc_id == self.context.next_counterparty_htlc_id
91039103
&& 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);
9104+
assert_eq!(commitment_data.stats.total_fee_sat, info.fee);
91069105
}
91079106
}
91089107
}

0 commit comments

Comments
 (0)