Commit db2f712
committed
Fix e/o bug in miniscript threshold correctness rules
This will not affect existing users of rust-miniscript as we were
previously more strict in the miniscript that we accepted. This
allows more more scripts to parsed as miniscripts.
This allows correctly tagging thresh z, o values as per the spec. For
example, miniscript with thresh(2,older(9),older(10)) to be tagged as `z`
and thresh(2,pk(),older()) as `o`
Found while doing a line to line comparison with c++ codebase and spec1 parent b20288c commit db2f712
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
| 481 | + | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
484 | 489 | | |
485 | | - | |
486 | 490 | | |
487 | 491 | | |
488 | 492 | | |
| |||
501 | 505 | | |
502 | 506 | | |
503 | 507 | | |
504 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
505 | 513 | | |
506 | 514 | | |
507 | 515 | | |
| |||
0 commit comments