@@ -732,17 +732,17 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
732
732
//... we need to verify equality between transaction outpoints and claim request
733
733
// outpoints to know if transaction is the original claim or a bumped one issued
734
734
// by us.
735
- let mut set_equality = true ;
735
+ let mut are_sets_equal = true ;
736
736
if !request. requires_external_funding ( ) || !request. is_malleable ( ) {
737
737
// If the claim does not require external funds to be allocated through
738
738
// additional inputs we can simply check the inputs in order as they
739
739
// cannot change under us.
740
740
if request. outpoints ( ) . len ( ) != tx. input . len ( ) {
741
- set_equality = false ;
741
+ are_sets_equal = false ;
742
742
} else {
743
743
for ( claim_inp, tx_inp) in request. outpoints ( ) . iter ( ) . zip ( tx. input . iter ( ) ) {
744
744
if * * claim_inp != tx_inp. previous_output {
745
- set_equality = false ;
745
+ are_sets_equal = false ;
746
746
}
747
747
}
748
748
}
@@ -757,7 +757,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
757
757
break ;
758
758
}
759
759
}
760
- set_equality = spends_all_inputs;
760
+ are_sets_equal = spends_all_inputs;
761
761
}
762
762
763
763
macro_rules! clean_claim_request_after_safety_delay {
@@ -777,7 +777,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
777
777
// If this is our transaction (or our counterparty spent all the outputs
778
778
// before we could anyway with same inputs order than us), wait for
779
779
// ANTI_REORG_DELAY and clean the RBF tracking map.
780
- if set_equality {
780
+ if are_sets_equal {
781
781
clean_claim_request_after_safety_delay ! ( ) ;
782
782
} else { // If false, generate new claim request with update outpoint set
783
783
let mut at_least_one_drop = false ;
0 commit comments