From 0aaba2ce45a5f295aa76ff4afeaf96fa5f52bb5a Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Mon, 21 Nov 2022 17:22:06 -0800 Subject: [PATCH] Rename set_equality within update_claims_view_from_matched_txn --- lightning/src/chain/onchaintx.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lightning/src/chain/onchaintx.rs b/lightning/src/chain/onchaintx.rs index 18465433d..5bf3a8fd4 100644 --- a/lightning/src/chain/onchaintx.rs +++ b/lightning/src/chain/onchaintx.rs @@ -732,17 +732,17 @@ impl OnchainTxHandler { //... we need to verify equality between transaction outpoints and claim request // outpoints to know if transaction is the original claim or a bumped one issued // by us. - let mut set_equality = true; + let mut are_sets_equal = true; if !request.requires_external_funding() || !request.is_malleable() { // If the claim does not require external funds to be allocated through // additional inputs we can simply check the inputs in order as they // cannot change under us. if request.outpoints().len() != tx.input.len() { - set_equality = false; + are_sets_equal = false; } else { for (claim_inp, tx_inp) in request.outpoints().iter().zip(tx.input.iter()) { if **claim_inp != tx_inp.previous_output { - set_equality = false; + are_sets_equal = false; } } } @@ -757,7 +757,7 @@ impl OnchainTxHandler { break; } } - set_equality = spends_all_inputs; + are_sets_equal = spends_all_inputs; } macro_rules! clean_claim_request_after_safety_delay { @@ -777,7 +777,7 @@ impl OnchainTxHandler { // If this is our transaction (or our counterparty spent all the outputs // before we could anyway with same inputs order than us), wait for // ANTI_REORG_DELAY and clean the RBF tracking map. - if set_equality { + if are_sets_equal { clean_claim_request_after_safety_delay!(); } else { // If false, generate new claim request with update outpoint set let mut at_least_one_drop = false; -- 2.39.5