@@ -597,7 +597,7 @@ where
597
597
commitment_tx : & Transaction , commitment_tx_fee_sat : u64 , anchor_descriptor : & AnchorDescriptor ,
598
598
) -> Result < ( ) , ( ) > {
599
599
// 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
601
601
// the anchor input.
602
602
let mut anchor_utxo = anchor_descriptor. previous_utxo ( ) ;
603
603
anchor_utxo. value += commitment_tx_fee_sat;
@@ -607,9 +607,9 @@ where
607
607
satisfaction_weight: commitment_tx. weight( ) . to_wu( ) + ANCHOR_INPUT_WITNESS_WEIGHT + EMPTY_SCRIPT_SIG_WEIGHT ,
608
608
} ] ;
609
609
#[ 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 > ( ) ;
611
611
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" ,
613
613
package_target_feerate_sat_per_1000_weight) ;
614
614
let coin_selection: CoinSelection = self . utxo_source . select_confirmed_utxos (
615
615
claim_id, must_spend, & [ ] , package_target_feerate_sat_per_1000_weight,
@@ -711,14 +711,14 @@ where
711
711
htlc_tx. output . push ( htlc_output) ;
712
712
}
713
713
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" ,
715
715
target_feerate_sat_per_1000_weight) ;
716
716
717
717
#[ cfg( debug_assertions) ]
718
718
let must_spend_satisfaction_weight =
719
719
must_spend. iter ( ) . map ( |input| input. satisfaction_weight ) . sum :: < u64 > ( ) ;
720
720
#[ 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 > ( ) ;
722
722
723
723
let coin_selection: CoinSelection = self . utxo_source . select_confirmed_utxos (
724
724
claim_id, must_spend, & htlc_tx. output , target_feerate_sat_per_1000_weight,
0 commit comments