chain: minor.
This commit is contained in:
parent
bf2e7d1486
commit
1d6eb802e7
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user