Skip to content

Commit 0235896

Browse files
committed
txscript: return ErrCleanStack for witness cleanstack failures
The refreshed Bitcoin Core script reference tests expect witness clean-stack failures to report CLEANSTACK rather than a generic EVAL_FALSE result.
1 parent 1b76fcb commit 0235896

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

txscript/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ func (vm *Engine) CheckErrorCondition(finalScript bool) error {
910910
// compatibility with BIP16.
911911
if finalScript && vm.isWitnessVersionActive(BaseSegwitWitnessVersion) &&
912912
vm.dstack.Depth() != 1 {
913-
return scriptError(ErrEvalFalse, "witness program must "+
913+
return scriptError(ErrCleanStack, "witness program must "+
914914
"have clean stack")
915915
}
916916

0 commit comments

Comments
 (0)