Browse Source

Rename finalize_spend_transaction arguments

To convey that the order in which these pairs of arguments are passed
in is irrelevant.
integrate-protocol-maker-side
Lucas Soriano del Pino 3 years ago
parent
commit
31f1a87d3a
No known key found for this signature in database GPG Key ID: EE611E973A1530E7
  1. 8
      cfd_protocol/src/lib.rs

8
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<PublicKey>,
(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<Transaction> {
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

Loading…
Cancel
Save