do not connect the genesis block.
This commit is contained in:
parent
f2a35c46c2
commit
214a78acbf
@ -783,6 +783,10 @@ ChainDB.prototype.connectBlock = function connectBlock(block, batch, callback) {
|
|||||||
return utils.nextTick(callback);
|
return utils.nextTick(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Genesis block's coinbase is unspendable.
|
||||||
|
if (block.hash('hex') === network.genesis.hash)
|
||||||
|
return utils.nextTick(callback);
|
||||||
|
|
||||||
this._ensureBlock(block, function(err, block) {
|
this._ensureBlock(block, function(err, block) {
|
||||||
if (err)
|
if (err)
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user