Skip to content

Commit 511d7e3

Browse files
authored
Merge pull request #3073 from tnull/2024-05-bump-nits
Fix minor nits in `BumpTransactionEventHandler`
2 parents c84c2b6 + 8e08eaf commit 511d7e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ where
597597
commitment_tx: &Transaction, commitment_tx_fee_sat: u64, anchor_descriptor: &AnchorDescriptor,
598598
) -> Result<(), ()> {
599599
// Our commitment transaction already has fees allocated to it, so we should take them into
600-
// account. We do so by pretending the commitment tranasction's fee and weight are part of
600+
// account. We do so by pretending the commitment transaction's fee and weight are part of
601601
// the anchor input.
602602
let mut anchor_utxo = anchor_descriptor.previous_utxo();
603603
anchor_utxo.value += commitment_tx_fee_sat;
@@ -607,9 +607,9 @@ where
607607
satisfaction_weight: commitment_tx.weight().to_wu() + ANCHOR_INPUT_WITNESS_WEIGHT + EMPTY_SCRIPT_SIG_WEIGHT,
608608
}];
609609
#[cfg(debug_assertions)]
610-
let must_spend_amount = must_spend.iter().map(|input| input.previous_utxo.value).sum::<u64>();
610+
let must_spend_amount = must_spend.iter().map(|input| input.previous_utxo.value).sum::<u64>();
611611

612-
log_debug!(self.logger, "Peforming coin selection for commitment package (commitment and anchor transaction) targeting {} sat/kW",
612+
log_debug!(self.logger, "Performing coin selection for commitment package (commitment and anchor transaction) targeting {} sat/kW",
613613
package_target_feerate_sat_per_1000_weight);
614614
let coin_selection: CoinSelection = self.utxo_source.select_confirmed_utxos(
615615
claim_id, must_spend, &[], package_target_feerate_sat_per_1000_weight,
@@ -711,14 +711,14 @@ where
711711
htlc_tx.output.push(htlc_output);
712712
}
713713

714-
log_debug!(self.logger, "Peforming coin selection for HTLC transaction targeting {} sat/kW",
714+
log_debug!(self.logger, "Performing coin selection for HTLC transaction targeting {} sat/kW",
715715
target_feerate_sat_per_1000_weight);
716716

717717
#[cfg(debug_assertions)]
718718
let must_spend_satisfaction_weight =
719719
must_spend.iter().map(|input| input.satisfaction_weight).sum::<u64>();
720720
#[cfg(debug_assertions)]
721-
let must_spend_amount = must_spend.iter().map(|input| input.previous_utxo.value).sum::<u64>();
721+
let must_spend_amount = must_spend.iter().map(|input| input.previous_utxo.value).sum::<u64>();
722722

723723
let coin_selection: CoinSelection = self.utxo_source.select_confirmed_utxos(
724724
claim_id, must_spend, &htlc_tx.output, target_feerate_sat_per_1000_weight,

0 commit comments

Comments
 (0)