From ddb24ee6153f4a0d77d2e44f42222d6175f4c2ac Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 13 Oct 2014 19:46:20 +1100 Subject: [PATCH] scripts: check chunks length properly --- src/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts.js b/src/scripts.js index 7d77b16..b7c4dd5 100644 --- a/src/scripts.js +++ b/src/scripts.js @@ -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]