txscript/engine: Use optimized IsPushOnlyScript
This commit is contained in:
parent
1814b48565
commit
c0b2b10241
1 changed files with 1 additions and 1 deletions
|
@ -950,7 +950,7 @@ func NewEngine(scriptPubKey []byte, tx *wire.MsgTx, txIdx int, flags ScriptFlags
|
|||
// the flag to verify signature scripts are push only is set
|
||||
// above, so avoid checking again.
|
||||
alreadyChecked := vm.hasFlag(ScriptVerifySigPushOnly)
|
||||
if !alreadyChecked && !isPushOnly(vm.scripts[0]) {
|
||||
if !alreadyChecked && !IsPushOnlyScript(scriptSig) {
|
||||
return nil, scriptError(ErrNotPushOnly,
|
||||
"pay to script hash is not push only")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue