Skip to content

Commit

Permalink
Rename current_maker ---> this_maker
Browse files Browse the repository at this point in the history
Better name which fits the other variable names e.g. this_maker_multisig_pubkeys
  • Loading branch information
chris-belcher committed Feb 7, 2022
1 parent 3a59094 commit 731d738
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/taker_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async fn send_coinswap(
get_swapcoin_multisig_contract_redeemscripts_txes(watchonly_swapcoins.last().unwrap())
};

let current_maker = next_maker;
let this_maker = next_maker;
let (
next_peer_multisig_pubkeys,
next_peer_multisig_keys_or_nonces,
Expand All @@ -237,7 +237,7 @@ async fn send_coinswap(
rpc,
&config,
&mut maker_offers_addresses,
&current_maker,
&this_maker,
previous_maker,
is_taker_previous_peer,
is_taker_next_peer,
Expand All @@ -255,7 +255,7 @@ async fn send_coinswap(
)
.await?;
next_maker = found_next_maker;
active_maker_addresses.push(current_maker.address.clone());
active_maker_addresses.push(this_maker.address.clone());

let wait_for_confirm_result = wait_for_funding_tx_confirmation(
rpc,
Expand Down Expand Up @@ -317,7 +317,7 @@ async fn send_coinswap(
}
this_maker_multisig_privkeys = next_peer_multisig_keys_or_nonces;
this_maker_hashlock_privkeys = next_peer_hashlock_keys_or_nonces;
previous_maker = Some(current_maker);
previous_maker = Some(this_maker);
}

let last_maker = previous_maker.unwrap();
Expand Down

0 comments on commit 731d738

Please sign in to comment.