Skip to content

Commit 747876e

Browse files
Rectify from_multi_a max satisfaction size
Cost incurred for a single Schnorr signature in the witness stack := `<var_int><64-byte signature><sig_type>` = 1 + 64 + 1
1 parent d8cc633 commit 747876e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miniscript/types/extra_props.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl Property for ExtData {
249249
ops_count_nsat: Some(n + 1),
250250
stack_elem_count_sat: Some(n),
251251
stack_elem_count_dissat: Some(n),
252-
max_sat_size: Some(((n - k) + 64 * k, (n - k) + 64 * k)),
252+
max_sat_size: Some(((n - k) + 66 * k, (n - k) + 66 * k)),
253253
max_dissat_size: Some((n, n)),
254254
timelock_info: TimeLockInfo::default(),
255255
exec_stack_elem_count_sat: Some(2), // the two nums before num equal verify

0 commit comments

Comments
 (0)