This commit is contained in:
Christopher Jeffrey 2016-06-12 22:34:58 -07:00
parent 896f1f989c
commit ebe3b3ed54
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -823,6 +823,8 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, state, callbac
var height = prev.height + 1;
var scriptCheck = true;
var historical = false;
var sigops = 0;
var ret = {};
if (this.options.spv)
return callback();
@ -839,9 +841,6 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, state, callbac
}
this.db.getCoinView(block, function(err, view) {
var ret = {};
var sigops = 0;
if (err)
return callback(err);
@ -893,7 +892,7 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, state, callbac
// Add new coins.
view.addTX(tx);
return next();
next();
});
}, function(err) {
if (err)