From a32cc5b3be8238cd53b4bd6828072686408b4593 Mon Sep 17 00:00:00 2001 From: Thomas Kerin Date: Tue, 3 Jan 2017 17:54:31 +0100 Subject: [PATCH] remove debugging code --- src/transaction_builder.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 146b38c..ec6cb31 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -198,7 +198,6 @@ function fixMultisigOrder (input, transaction, vin) { } function expandOutput (script, scriptType, ourPubKey) { - console.log('expandOutput: ', script.toString('hex'), scriptType, ourPubKey) typeforce(types.Buffer, script) var scriptChunks = bscript.decompile(script) @@ -208,11 +207,9 @@ function expandOutput (script, scriptType, ourPubKey) { var pubKeys = [] - console.log(scriptType) switch (scriptType) { // does our hash160(pubKey) match the output scripts? case scriptTypes.P2PKH: - console.log(scriptChunks) if (!ourPubKey) break var pkh1 = scriptChunks[2] @@ -331,7 +328,6 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip witness = (input.prevOutScript === scriptTypes.P2WPKH) } else { prevOutScript = bscript.pubKeyHash.output.encode(bcrypto.hash160(kpPubKey)) - console.log(prevOutScript) expanded = expandOutput(prevOutScript, scriptTypes.P2PKH, kpPubKey) prevOutType = scriptTypes.P2PKH witness = false