txscript/engine: Use optimized isScriptHashScript
This commit is contained in:
parent
a59e01c23c
commit
1be3450efb
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++
|
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.
|
// Only accept input scripts that push data for P2SH.
|
||||||
// Notice that the push only checks have already been done when
|
// Notice that the push only checks have already been done when
|
||||||
// the flag to verify signature scripts are push only is set
|
// the flag to verify signature scripts are push only is set
|
||||||
|
|
Loading…
Reference in a new issue