From 8b1e2c5e1ec0e41f54a38057bbe06069f2ccbf8a Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 24 Jun 2014 17:47:16 +1000 Subject: [PATCH] scripts: recursive scriptHash no longer problematic --- src/scripts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scripts.js b/src/scripts.js index 09098c9..a442c47 100644 --- a/src/scripts.js +++ b/src/scripts.js @@ -35,13 +35,12 @@ function classifyOutput(script) { } } -function classifyInput(script, checkScriptHash) { +function classifyInput(script) { assert(script instanceof Script, 'Expected Script, got ', script) - if (checkScriptHash === undefined) checkScriptHash = true if (isPubKeyHashInput.call(script)) { return 'pubkeyhash' - } else if (checkScriptHash && isScriptHashInput.call(script)) { + } else if (isScriptHashInput.call(script)) { return 'scripthash' } else if (isMultisigInput.call(script)) { return 'multisig'