Merge pull request #492 from curtislacy/Pubkey-Error

Clarified error message when we encounter an unknown script pubkey
This commit is contained in:
Manuel Aráoz 2014-08-18 15:57:08 -04:00
commit 15525efbcc
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ TransactionBuilder.prototype._setInputMap = function() {
var scriptType = scriptPubKey.classify(); var scriptType = scriptPubKey.classify();
if (scriptType === Script.TX_UNKNOWN) if (scriptType === Script.TX_UNKNOWN)
throw new Error('unkown output type at:' + i + throw new Error('Unknown scriptPubKey type at:' + i +
' Type:' + scriptPubKey.getRawOutType()); ' Type:' + scriptPubKey.getRawOutType());
inputMap.push({ inputMap.push({