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 #49 from ethereumjs/validate-fix
Browse files Browse the repository at this point in the history
Fix BlockHeader.prototype.validate() bug
  • Loading branch information
holgerd77 authored Aug 8, 2018
2 parents 16aba3e + 22729b8 commit daf6c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions header.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ BlockHeader.prototype.validate = function (blockchain, height, cb) {
return cb('invalid timestamp')
}

const hardfork = this._common.hardfork() ? this._common.hardfork() : this._common.activeHardfork(height)
if (self.extraData.length > this._common.param('vm', 'maxExtraDataSize', hardfork)) {
const hardfork = self._common.hardfork() ? self._common.hardfork() : self._common.activeHardfork(height)
if (self.extraData.length > self._common.param('vm', 'maxExtraDataSize', hardfork)) {
return cb('invalid amount of extra data')
}

Expand Down

0 comments on commit daf6c8d

Please sign in to comment.