Skip to content

Commit c8be80f

Browse files
committed
Rename set_equality within update_claims_view_from_matched_txn
1 parent aaf458d commit c8be80f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/chain/onchaintx.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,17 +710,17 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
710710
//... we need to verify equality between transaction outpoints and claim request
711711
// outpoints to know if transaction is the original claim or a bumped one issued
712712
// by us.
713-
let mut set_equality = true;
713+
let mut are_sets_equal = true;
714714
if !request.requires_external_funding() || !request.is_malleable() {
715715
// If the claim does not require external funds to be allocated through
716716
// additional inputs we can simply check the inputs in order as they
717717
// cannot change under us.
718718
if request.outpoints().len() != tx.input.len() {
719-
set_equality = false;
719+
are_sets_equal = false;
720720
} else {
721721
for (claim_inp, tx_inp) in request.outpoints().iter().zip(tx.input.iter()) {
722722
if **claim_inp != tx_inp.previous_output {
723-
set_equality = false;
723+
are_sets_equal = false;
724724
}
725725
}
726726
}
@@ -735,7 +735,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
735735
break;
736736
}
737737
}
738-
set_equality = spends_all_inputs;
738+
are_sets_equal = spends_all_inputs;
739739
}
740740

741741
macro_rules! clean_claim_request_after_safety_delay {
@@ -755,7 +755,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
755755
// If this is our transaction (or our counterparty spent all the outputs
756756
// before we could anyway with same inputs order than us), wait for
757757
// ANTI_REORG_DELAY and clean the RBF tracking map.
758-
if set_equality {
758+
if are_sets_equal {
759759
clean_claim_request_after_safety_delay!();
760760
} else { // If false, generate new claim request with update outpoint set
761761
let mut at_least_one_drop = false;

0 commit comments

Comments
 (0)