txscript/engine: Use optimized isScriptHashScript
This commit is contained in:
parent
c0b2b10241
commit
2674b2926b
1 changed files with 1 additions and 1 deletions
|
@ -944,7 +944,7 @@ func NewEngine(scriptPubKey []byte, tx *wire.MsgTx, txIdx int, flags ScriptFlags
|
|||
vm.scriptIdx++
|
||||
}
|
||||
|
||||
if vm.hasFlag(ScriptBip16) && isScriptHash(vm.scripts[1]) {
|
||||
if vm.hasFlag(ScriptBip16) && isScriptHashScript(scriptPubKey) {
|
||||
// Only accept input scripts that push data for P2SH.
|
||||
// Notice that the push only checks have already been done when
|
||||
// the flag to verify signature scripts are push only is set
|
||||
|
|
Loading…
Reference in a new issue