minor.
This commit is contained in:
parent
c8dc5901ec
commit
c1a46eedee
@ -494,8 +494,12 @@ Chain.prototype._verify = function _verify(block, prev, callback) {
|
|||||||
var ret = {};
|
var ret = {};
|
||||||
var height, ts, i, tx, medianTime, commitmentHash;
|
var height, ts, i, tx, medianTime, commitmentHash;
|
||||||
|
|
||||||
if (!block.verify(ret))
|
if (!block.verify(ret)) {
|
||||||
return callback(new VerifyError(block, 'invalid', ret.reason, ret.score));
|
return callback(new VerifyError(block,
|
||||||
|
'invalid',
|
||||||
|
ret.reason,
|
||||||
|
ret.score));
|
||||||
|
}
|
||||||
|
|
||||||
// Skip the genesis block. Skip all blocks in spv mode.
|
// Skip the genesis block. Skip all blocks in spv mode.
|
||||||
if (this.options.spv || this.isGenesis(block))
|
if (this.options.spv || this.isGenesis(block))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user