From 747876ed7104738e89de5d7574e66db66adc30e9 Mon Sep 17 00:00:00 2001 From: Aman Rojjha Date: Tue, 19 Apr 2022 03:39:04 +0530 Subject: [PATCH] Rectify `from_multi_a` max satisfaction size Cost incurred for a single Schnorr signature in the witness stack := `<64-byte signature>` = 1 + 64 + 1 --- src/miniscript/types/extra_props.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miniscript/types/extra_props.rs b/src/miniscript/types/extra_props.rs index 735c429f3..b55cca44f 100644 --- a/src/miniscript/types/extra_props.rs +++ b/src/miniscript/types/extra_props.rs @@ -249,7 +249,7 @@ impl Property for ExtData { ops_count_nsat: Some(n + 1), stack_elem_count_sat: Some(n), stack_elem_count_dissat: Some(n), - max_sat_size: Some(((n - k) + 64 * k, (n - k) + 64 * k)), + max_sat_size: Some(((n - k) + 66 * k, (n - k) + 66 * k)), max_dissat_size: Some((n, n)), timelock_info: TimeLockInfo::default(), exec_stack_elem_count_sat: Some(2), // the two nums before num equal verify