@@ -712,17 +712,17 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
712
712
//... we need to verify equality between transaction outpoints and claim request
713
713
// outpoints to know if transaction is the original claim or a bumped one issued
714
714
// by us.
715
- let mut set_equality = true ;
715
+ let mut are_sets_equal = true ;
716
716
if !request. requires_external_funding ( ) || !request. is_malleable ( ) {
717
717
// If the claim does not require external funds to be allocated through
718
718
// additional inputs we can simply check the inputs in order as they
719
719
// cannot change under us.
720
720
if request. outpoints ( ) . len ( ) != tx. input . len ( ) {
721
- set_equality = false ;
721
+ are_sets_equal = false ;
722
722
} else {
723
723
for ( claim_inp, tx_inp) in request. outpoints ( ) . iter ( ) . zip ( tx. input . iter ( ) ) {
724
724
if * * claim_inp != tx_inp. previous_output {
725
- set_equality = false ;
725
+ are_sets_equal = false ;
726
726
}
727
727
}
728
728
}
@@ -737,7 +737,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
737
737
break ;
738
738
}
739
739
}
740
- set_equality = spends_all_inputs;
740
+ are_sets_equal = spends_all_inputs;
741
741
}
742
742
743
743
macro_rules! clean_claim_request_after_safety_delay {
@@ -757,7 +757,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
757
757
// If this is our transaction (or our counterparty spent all the outputs
758
758
// before we could anyway with same inputs order than us), wait for
759
759
// ANTI_REORG_DELAY and clean the RBF tracking map.
760
- if set_equality {
760
+ if are_sets_equal {
761
761
clean_claim_request_after_safety_delay ! ( ) ;
762
762
} else { // If false, generate new claim request with update outpoint set
763
763
let mut at_least_one_drop = false ;
0 commit comments