Skip to content

Commit 1ff227c

Browse files
committed
Rename set_equality within update_claims_view_from_matched_txn
1 parent a4e7142 commit 1ff227c

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
@@ -718,17 +718,17 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
718718
//... we need to verify equality between transaction outpoints and claim request
719719
// outpoints to know if transaction is the original claim or a bumped one issued
720720
// by us.
721-
let mut set_equality = true;
721+
let mut are_sets_equal = true;
722722
if !request.requires_external_funding() || !request.is_malleable() {
723723
// If the claim does not require external funds to be allocated through
724724
// additional inputs we can simply check the inputs in order as they
725725
// cannot change under us.
726726
if request.outpoints().len() != tx.input.len() {
727-
set_equality = false;
727+
are_sets_equal = false;
728728
} else {
729729
for (claim_inp, tx_inp) in request.outpoints().iter().zip(tx.input.iter()) {
730730
if **claim_inp != tx_inp.previous_output {
731-
set_equality = false;
731+
are_sets_equal = false;
732732
}
733733
}
734734
}
@@ -743,7 +743,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
743743
break;
744744
}
745745
}
746-
set_equality = spends_all_inputs;
746+
are_sets_equal = spends_all_inputs;
747747
}
748748

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

0 commit comments

Comments
 (0)