Skip to content

Commit 09175e3

Browse files
committed
Merge #930: Followup to #895: rename dissat_sat function and use struct rather than tuple for return values
f7f1689 miniscript: rename fn dissat_sat to sat_dissat (Andrew Poelstra) 2bcc858 miniscript: make dissat_sat return a struct rather than a tuple (Andrew Poelstra) Pull request description: Makes naming more consistent and reduces confusion caused by having a tuple with two entries of the same type. ACKs for top commit: apoelstra: On f7f1689 successfully ran local tests tcharding: ACK f7f1689 Tree-SHA512: 80753b6414059dbd68ed85f32401bdd3a466ebfe793250dd1ed5b93b14c84029dc0897077390c48ee3e82ec5f867e13775ed0ac4ac8c336303067e4a3fd871f0
2 parents 7cd03d0 + f7f1689 commit 09175e3

2 files changed

Lines changed: 129 additions & 109 deletions

File tree

src/miniscript/satisfy/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ impl<Pk: MiniscriptKey + ToPublicKey> Satisfaction<Placeholder<Pk>> {
10261026
Ctx: ScriptContext,
10271027
P: AssetProvider<Pk>,
10281028
{
1029-
Self::dissat_sat(node, provider, false, root_has_sig, leaf_hash).1
1029+
Self::sat_dissat(node, provider, false, root_has_sig, leaf_hash).sat
10301030
}
10311031

10321032
pub(crate) fn build_template_mall<P, Ctx>(
@@ -1039,7 +1039,7 @@ impl<Pk: MiniscriptKey + ToPublicKey> Satisfaction<Placeholder<Pk>> {
10391039
Ctx: ScriptContext,
10401040
P: AssetProvider<Pk>,
10411041
{
1042-
Self::dissat_sat(node, provider, true, root_has_sig, leaf_hash).1
1042+
Self::sat_dissat(node, provider, true, root_has_sig, leaf_hash).sat
10431043
}
10441044

10451045
// produce a non-malleable satisafaction for thesh frag

0 commit comments

Comments
 (0)