From 6c220c4b58e2a4e1ea8bcdd4edb44376281c2bd2 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 6 Jan 2017 13:42:30 +1100 Subject: [PATCH] templates: add missing allowComplete pass through --- src/templates/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/index.js b/src/templates/index.js index 72143f1..4916c78 100644 --- a/src/templates/index.js +++ b/src/templates/index.js @@ -53,7 +53,7 @@ function classifyWitness (script, allowIncomplete) { var chunks = decompile(script) if (witnessPubKeyHash.input.check(chunks)) return types.P2WPKH - if (witnessScriptHash.input.check(chunks)) return types.P2WSH + if (witnessScriptHash.input.check(chunks, allowIncomplete)) return types.P2WSH return types.NONSTANDARD }