set height on genesis block.

This commit is contained in:
Christopher Jeffrey 2016-05-04 17:16:19 -07:00
parent aefe60b6d4
commit 9f0d90f5a9
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -145,7 +145,7 @@ ChainDB.prototype._init = function _init() {
}, null);
block = bcoin.block.fromRaw(network.genesisBlock, 'hex');
block.height = 0;
block.setHeight(0);
self.save(genesis, block, true, finish);
});