From 31f1a87d3aed7186d5dce485a80b07566042442c Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Fri, 10 Sep 2021 15:16:15 +1000 Subject: [PATCH] Rename finalize_spend_transaction arguments To convey that the order in which these pairs of arguments are passed in is irrelevant. --- cfd_protocol/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cfd_protocol/src/lib.rs b/cfd_protocol/src/lib.rs index 86d2159..687cc2c 100644 --- a/cfd_protocol/src/lib.rs +++ b/cfd_protocol/src/lib.rs @@ -287,12 +287,12 @@ pub fn spending_tx_sighash( pub fn finalize_spend_transaction( mut tx: Transaction, spent_descriptor: &Descriptor, - (maker_pk, maker_sig): (PublicKey, Signature), - (taker_pk, taker_sig): (PublicKey, Signature), + (pk_0, sig_0): (PublicKey, Signature), + (pk_1, sig_1): (PublicKey, Signature), ) -> Result { let satisfier = HashMap::from_iter(vec![ - (maker_pk, (maker_sig, SigHashType::All)), - (taker_pk, (taker_sig, SigHashType::All)), + (pk_0, (sig_0, SigHashType::All)), + (pk_1, (sig_1, SigHashType::All)), ]); let input = tx