Skip to content

Commit 0aaba2c

Browse files
committed
Rename set_equality within update_claims_view_from_matched_txn
1 parent d0847bd commit 0aaba2c

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
@@ -732,17 +732,17 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
732732
//... we need to verify equality between transaction outpoints and claim request
733733
// outpoints to know if transaction is the original claim or a bumped one issued
734734
// by us.
735-
let mut set_equality = true;
735+
let mut are_sets_equal = true;
736736
if !request.requires_external_funding() || !request.is_malleable() {
737737
// If the claim does not require external funds to be allocated through
738738
// additional inputs we can simply check the inputs in order as they
739739
// cannot change under us.
740740
if request.outpoints().len() != tx.input.len() {
741-
set_equality = false;
741+
are_sets_equal = false;
742742
} else {
743743
for (claim_inp, tx_inp) in request.outpoints().iter().zip(tx.input.iter()) {
744744
if **claim_inp != tx_inp.previous_output {
745-
set_equality = false;
745+
are_sets_equal = false;
746746
}
747747
}
748748
}
@@ -757,7 +757,7 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
757757
break;
758758
}
759759
}
760-
set_equality = spends_all_inputs;
760+
are_sets_equal = spends_all_inputs;
761761
}
762762

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

0 commit comments

Comments
 (0)