scripts: check chunks length properly
This commit is contained in:
parent
27a99436df
commit
ddb24ee615
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ function isMultisigInput(script) {
|
|||
}
|
||||
|
||||
function isMultisigOutput(script) {
|
||||
if (script.chunks < 4) return false
|
||||
if (script.chunks.length < 4) return false
|
||||
if (script.chunks[script.chunks.length - 1] !== ops.OP_CHECKMULTISIG) return false
|
||||
|
||||
var mOp = script.chunks[0]
|
||||
|
|
Loading…
Add table
Reference in a new issue