remove debugging code
This commit is contained in:
parent
52745d1d0c
commit
a32cc5b3be
1 changed files with 0 additions and 4 deletions
|
@ -198,7 +198,6 @@ function fixMultisigOrder (input, transaction, vin) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function expandOutput (script, scriptType, ourPubKey) {
|
function expandOutput (script, scriptType, ourPubKey) {
|
||||||
console.log('expandOutput: ', script.toString('hex'), scriptType, ourPubKey)
|
|
||||||
typeforce(types.Buffer, script)
|
typeforce(types.Buffer, script)
|
||||||
|
|
||||||
var scriptChunks = bscript.decompile(script)
|
var scriptChunks = bscript.decompile(script)
|
||||||
|
@ -208,11 +207,9 @@ function expandOutput (script, scriptType, ourPubKey) {
|
||||||
|
|
||||||
var pubKeys = []
|
var pubKeys = []
|
||||||
|
|
||||||
console.log(scriptType)
|
|
||||||
switch (scriptType) {
|
switch (scriptType) {
|
||||||
// does our hash160(pubKey) match the output scripts?
|
// does our hash160(pubKey) match the output scripts?
|
||||||
case scriptTypes.P2PKH:
|
case scriptTypes.P2PKH:
|
||||||
console.log(scriptChunks)
|
|
||||||
if (!ourPubKey) break
|
if (!ourPubKey) break
|
||||||
|
|
||||||
var pkh1 = scriptChunks[2]
|
var pkh1 = scriptChunks[2]
|
||||||
|
@ -331,7 +328,6 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip
|
||||||
witness = (input.prevOutScript === scriptTypes.P2WPKH)
|
witness = (input.prevOutScript === scriptTypes.P2WPKH)
|
||||||
} else {
|
} else {
|
||||||
prevOutScript = bscript.pubKeyHash.output.encode(bcrypto.hash160(kpPubKey))
|
prevOutScript = bscript.pubKeyHash.output.encode(bcrypto.hash160(kpPubKey))
|
||||||
console.log(prevOutScript)
|
|
||||||
expanded = expandOutput(prevOutScript, scriptTypes.P2PKH, kpPubKey)
|
expanded = expandOutput(prevOutScript, scriptTypes.P2PKH, kpPubKey)
|
||||||
prevOutType = scriptTypes.P2PKH
|
prevOutType = scriptTypes.P2PKH
|
||||||
witness = false
|
witness = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue