We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
per_outbound_htlc_counterparty_commit_tx_fee_msat
1 parent b1fc7d8 commit 35dd3a8Copy full SHA for 35dd3a8
lightning/src/ln/chan_utils.rs
@@ -201,9 +201,9 @@ pub(crate) fn per_outbound_htlc_counterparty_commit_tx_fee_msat(feerate_per_kw:
201
// since the lowest denomination of bitcoin on-chain is the satoshi.
202
let commitment_tx_fee = COMMITMENT_TX_WEIGHT_PER_HTLC * feerate_per_kw as u64 / 1000 * 1000;
203
if channel_type_features.supports_anchors_zero_fee_htlc_tx() {
204
- commitment_tx_fee + htlc_success_tx_weight(channel_type_features) * feerate_per_kw as u64 / 1000
205
- } else {
206
commitment_tx_fee
+ } else {
+ commitment_tx_fee + htlc_success_tx_weight(channel_type_features) * feerate_per_kw as u64 / 1000
207
}
208
209
0 commit comments