Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #62 from nicholasjpaterno/master
Browse files Browse the repository at this point in the history
Update index.js error messages
  • Loading branch information
holgerd77 authored Dec 20, 2018
2 parents f8dbba1 + a323580 commit 69c73b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Block.prototype.validate = function (blockChain, cb) {
}

if (!self.validateTransactionsTrie()) {
errors.push('invalid transaction true')
errors.push('invalid transaction trie')
}

var txErrors = self.validateTransactions(true)
Expand All @@ -216,7 +216,7 @@ Block.prototype.validate = function (blockChain, cb) {
}

if (!self.validateUnclesHash()) {
errors.push('invild uncle hash')
errors.push('invalid uncle hash')
}

cb(arrayToString(errors))
Expand Down Expand Up @@ -260,7 +260,7 @@ Block.prototype.validateUncles = function (blockChain, cb) {
})

if (!((new Set(uncleHashes)).size === uncleHashes.length)) {
return cb('dublicate unlces')
return cb('duplicate uncles')
}

async.each(self.uncleHeaders, function (uncle, cb2) {
Expand Down

0 comments on commit 69c73b1

Please sign in to comment.