@@ -434,7 +434,7 @@ impl ScriptContext for Legacy {
434
434
ms : & Miniscript < Pk , Self > ,
435
435
) -> Result < ( ) , ScriptContextError > {
436
436
match ms. ext . ops . op_count ( ) {
437
- None => Err ( ScriptContextError :: MaxOpCountExceeded ) ,
437
+ None => Err ( ScriptContextError :: ImpossibleSatisfaction ) ,
438
438
Some ( op_count) if op_count > MAX_OPS_PER_SCRIPT => {
439
439
Err ( ScriptContextError :: MaxOpCountExceeded )
440
440
}
@@ -543,7 +543,7 @@ impl ScriptContext for Segwitv0 {
543
543
ms : & Miniscript < Pk , Self > ,
544
544
) -> Result < ( ) , ScriptContextError > {
545
545
match ms. ext . ops . op_count ( ) {
546
- None => Err ( ScriptContextError :: MaxOpCountExceeded ) ,
546
+ None => Err ( ScriptContextError :: ImpossibleSatisfaction ) ,
547
547
Some ( op_count) if op_count > MAX_OPS_PER_SCRIPT => {
548
548
Err ( ScriptContextError :: MaxOpCountExceeded )
549
549
}
@@ -773,7 +773,7 @@ impl ScriptContext for BareCtx {
773
773
ms : & Miniscript < Pk , Self > ,
774
774
) -> Result < ( ) , ScriptContextError > {
775
775
match ms. ext . ops . op_count ( ) {
776
- None => Err ( ScriptContextError :: MaxOpCountExceeded ) ,
776
+ None => Err ( ScriptContextError :: ImpossibleSatisfaction ) ,
777
777
Some ( op_count) if op_count > MAX_OPS_PER_SCRIPT => {
778
778
Err ( ScriptContextError :: MaxOpCountExceeded )
779
779
}
0 commit comments