Skip to content

Commit 4a0ee9f

Browse files
committed
Adjust units on counterparty htlc tx excess fees
1 parent 188f299 commit 4a0ee9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3669,10 +3669,10 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
36693669
if !self.channel_type.supports_anchors_zero_fee_htlc_tx() {
36703670
on_counterparty_tx_dust_exposure_msat +=
36713671
on_counterparty_tx_accepted_nondust_htlcs as u64 * htlc_success_tx_weight(&self.channel_type)
3672-
* excess_feerate as u64 / 1000;
3672+
* excess_feerate as u64;
36733673
on_counterparty_tx_dust_exposure_msat +=
36743674
on_counterparty_tx_offered_nondust_htlcs as u64 * htlc_timeout_tx_weight(&self.channel_type)
3675-
* excess_feerate as u64 / 1000;
3675+
* excess_feerate as u64;
36763676
}
36773677
}
36783678

0 commit comments

Comments
 (0)