chain: minor.

This commit is contained in:
Christopher Jeffrey 2016-12-10 08:19:35 -08:00
parent bf2e7d1486
commit 1d6eb802e7
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -283,10 +283,6 @@ Chain.prototype.verify = co(function* verify(block, prev) {
var i, err, height, ts, tx, medianTime;
var commit, ancestors, state;
// Skip the genesis block.
if (this.isGenesis(block))
return this.state;
// Non-contextual checks.
if (!block.verify(ret)) {
err = new VerifyError(block,
@ -572,9 +568,6 @@ Chain.prototype.verifyDuplicates = co(function* verifyDuplicates(block, prev, st
if (this.options.spv)
return;
if (this.isGenesis(block))
return;
if (prev.isHistorical())
return;
@ -630,9 +623,6 @@ Chain.prototype.verifyInputs = co(function* verifyInputs(block, prev, state) {
if (this.options.spv)
return view;
if (this.isGenesis(block))
return view;
// Check all transactions
for (i = 0; i < block.txs.length; i++) {
tx = block.txs[i];