Browse Source

scripts: check chunks length properly

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
ddb24ee615
  1. 2
      src/scripts.js

2
src/scripts.js

@ -89,7 +89,7 @@ function isMultisigInput(script) {
} }
function isMultisigOutput(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 if (script.chunks[script.chunks.length - 1] !== ops.OP_CHECKMULTISIG) return false
var mOp = script.chunks[0] var mOp = script.chunks[0]

Loading…
Cancel
Save