This commit is contained in:
Christopher Jeffrey 2016-06-30 11:31:37 -07:00
parent c8dc5901ec
commit c1a46eedee
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -494,8 +494,12 @@ Chain.prototype._verify = function _verify(block, prev, callback) {
var ret = {};
var height, ts, i, tx, medianTime, commitmentHash;
if (!block.verify(ret))
return callback(new VerifyError(block, 'invalid', ret.reason, ret.score));
if (!block.verify(ret)) {
return callback(new VerifyError(block,
'invalid',
ret.reason,
ret.score));
}
// Skip the genesis block. Skip all blocks in spv mode.
if (this.options.spv || this.isGenesis(block))