chain: minor.

This commit is contained in:
Christopher Jeffrey 2017-08-07 15:31:57 -07:00
parent 58ec9b3fab
commit e268e00adb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -593,7 +593,6 @@ Chain.prototype.verifyInputs = async function verifyInputs(block, prev, state) {
const interval = this.network.halvingInterval;
const height = prev.height + 1;
const historical = prev.isHistorical();
const jobs = [];
let sigops = 0;
let reward = 0;
@ -682,6 +681,7 @@ Chain.prototype.verifyInputs = async function verifyInputs(block, prev, state) {
}
// Push onto verification queue.
const jobs = [];
for (let i = 1; i < block.txs.length; i++) {
const tx = block.txs[i];
jobs.push(tx.verifyAsync(view, state.flags, this.workers));