From e0b227e4efafd32801641e72ef389cdd615ee278 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Thu, 19 Oct 2017 10:52:21 +1100 Subject: [PATCH] s/checkP2shInput/checkP2SHInput --- src/transaction_builder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 421e4f4..e2469e4 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -254,7 +254,7 @@ function expandOutput (script, scriptType, ourPubKey) { } } -function checkP2shInput (input, redeemScriptHash) { +function checkP2SHInput (input, redeemScriptHash) { if (input.prevOutType) { if (input.prevOutType !== scriptTypes.P2SH) throw new Error('PrevOutScript must be P2SH') @@ -292,7 +292,7 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip if (redeemScript && witnessScript) { redeemScriptHash = bcrypto.hash160(redeemScript) witnessScriptHash = bcrypto.sha256(witnessScript) - checkP2shInput(input, redeemScriptHash) + checkP2SHInput(input, redeemScriptHash) if (!redeemScript.equals(btemplates.witnessScriptHash.output.encode(witnessScriptHash))) throw new Error('Witness script inconsistent with redeem script') @@ -307,7 +307,7 @@ function prepareInput (input, kpPubKey, redeemScript, witnessValue, witnessScrip signScript = witnessScript } else if (redeemScript) { redeemScriptHash = bcrypto.hash160(redeemScript) - checkP2shInput(input, redeemScriptHash) + checkP2SHInput(input, redeemScriptHash) expanded = expandOutput(redeemScript, undefined, kpPubKey) if (!expanded.pubKeys) throw new Error('RedeemScript not supported "' + bscript.toASM(redeemScript) + '"')