Skip to content

Commit d61b267

Browse files
committed
Rename set_equality within update_claims_view_from_matched_txn
1 parent f0a3995 commit d61b267

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
@@ -712,17 +712,17 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
712712
//... we need to verify equality between transaction outpoints and claim request
713713
// outpoints to know if transaction is the original claim or a bumped one issued
714714
// by us.
715-
let mut set_equality = true;
715+
let mut are_sets_equal = true;
716716
if !request.requires_external_funding() || !request.is_malleable() {
717717
// If the claim does not require external funds to be allocated through
718718
// additional inputs we can simply check the inputs in order as they
719719
// cannot change under us.
720720
if request.outpoints().len() != tx.input.len() {
721-
set_equality = false;
721+
are_sets_equal = false;
722722
} else {
723723
for (claim_inp, tx_inp) in request.outpoints().iter().zip(tx.input.iter()) {
724724
if **claim_inp != tx_inp.previous_output {
725-
set_equality = false;
725+
are_sets_equal = false;
726726
}
727727
}
728728
}
@@ -737,7 +737,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
737737
break;
738738
}
739739
}
740-
set_equality = spends_all_inputs;
740+
are_sets_equal = spends_all_inputs;
741741
}
742742

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

0 commit comments

Comments
 (0)