From 22729b86608b59a05a784e3eee972815f9a79f15 Mon Sep 17 00:00:00 2001 From: Vinay Pulim Date: Sat, 28 Jul 2018 11:45:19 -0400 Subject: [PATCH] Fix BlockHeader.prototype.validate() bug --- header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/header.js b/header.js index a55f044..b6327a4 100644 --- a/header.js +++ b/header.js @@ -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') }