Browse Source

Fixed typos in transaction.verify error messages

patch-2
Braydon Fuller 10 years ago
parent
commit
6367cbe368
  1. 4
      lib/transaction/transaction.js

4
lib/transaction/transaction.js

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

Loading…
Cancel
Save