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 i, err, height, ts, tx, medianTime;
|
||||||
var commit, ancestors, state;
|
var commit, ancestors, state;
|
||||||
|
|
||||||
// Skip the genesis block.
|
|
||||||
if (this.isGenesis(block))
|
|
||||||
return this.state;
|
|
||||||
|
|
||||||
// Non-contextual checks.
|
// Non-contextual checks.
|
||||||
if (!block.verify(ret)) {
|
if (!block.verify(ret)) {
|
||||||
err = new VerifyError(block,
|
err = new VerifyError(block,
|
||||||
@ -572,9 +568,6 @@ Chain.prototype.verifyDuplicates = co(function* verifyDuplicates(block, prev, st
|
|||||||
if (this.options.spv)
|
if (this.options.spv)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (this.isGenesis(block))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (prev.isHistorical())
|
if (prev.isHistorical())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -630,9 +623,6 @@ Chain.prototype.verifyInputs = co(function* verifyInputs(block, prev, state) {
|
|||||||
if (this.options.spv)
|
if (this.options.spv)
|
||||||
return view;
|
return view;
|
||||||
|
|
||||||
if (this.isGenesis(block))
|
|
||||||
return view;
|
|
||||||
|
|
||||||
// Check all transactions
|
// Check all transactions
|
||||||
for (i = 0; i < block.txs.length; i++) {
|
for (i = 0; i < block.txs.length; i++) {
|
||||||
tx = block.txs[i];
|
tx = block.txs[i];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user