Fixed typos in transaction.verify error messages

This commit is contained in:
Braydon Fuller 2015-04-08 12:46:18 -04:00
parent 8ebf2e6f1f
commit 6367cbe368
1 changed files with 2 additions and 2 deletions

View File

@ -1011,12 +1011,12 @@ Transaction.prototype.verify = function() {
if (isCoinbase) { if (isCoinbase) {
var buf = this.inputs[0]._script.toBuffer(); var buf = this.inputs[0]._script.toBuffer();
if (buf.length < 2 || buf.length > 100) { if (buf.length < 2 || buf.length > 100) {
return 'coinbase trasaction script size invalid'; return 'coinbase transaction script size invalid';
} }
} else { } else {
for (i = 0; i < this.inputs.length; i++) { for (i = 0; i < this.inputs.length; i++) {
if (this.inputs[i].isNull()) { if (this.inputs[i].isNull()) {
return 'tranasction input ' + i + ' has null input'; return 'transaction input ' + i + ' has null input';
} }
} }
} }