From: Justin Moon Date: Thu, 19 Nov 2020 16:19:57 +0000 (-0600) Subject: More consistent references with 'signers' variables X-Git-Tag: v0.2.0~57^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/-cbf-node-interface/static/gitweb.css?a=commitdiff_plain;h=9e2b2d04baf952fc2f984517c3ce3a74ff9378f0;p=bdk More consistent references with 'signers' variables --- diff --git a/src/descriptor/policy.rs b/src/descriptor/policy.rs index 9391c15f..a41a650e 100644 --- a/src/descriptor/policy.rs +++ b/src/descriptor/policy.rs @@ -710,8 +710,8 @@ impl ExtractPolicy for Miniscript Ok(match &self.node { // Leaves Terminal::True | Terminal::False => None, - Terminal::PkK(pubkey) => Some(signature(pubkey, &signers, secp)), - Terminal::PkH(pubkey_hash) => Some(signature_key(pubkey_hash, &signers, secp)), + Terminal::PkK(pubkey) => Some(signature(pubkey, signers, secp)), + Terminal::PkH(pubkey_hash) => Some(signature_key(pubkey_hash, signers, secp)), Terminal::After(value) => { let mut policy: Policy = SatisfiableItem::AbsoluteTimelock { value: *value }.into(); policy.contribution = Satisfaction::Complete { @@ -776,7 +776,7 @@ impl ExtractPolicy for Miniscript let mut threshold = *k; let mapped: Vec<_> = nodes .iter() - .map(|n| n.extract_policy(&signers, secp)) + .map(|n| n.extract_policy(signers, secp)) .collect::, _>>()? .into_iter() .filter_map(|x| x)