move checkInputs for accuracy.
This commit is contained in:
parent
f48fa2b994
commit
9ac406aa2d
@ -1005,9 +1005,6 @@ Mempool.prototype.verify = function verify(entry, callback) {
|
||||
if (self.rejectAbsurdFees && fee > minRelayFee * 10000)
|
||||
return callback(new VerifyError(tx, 'highfee', 'absurdly-high-fee', 0));
|
||||
|
||||
if (!tx.checkInputs(height, ret))
|
||||
return callback(new VerifyError(tx, 'invalid', ret.reason, ret.score));
|
||||
|
||||
self.countAncestors(tx, function(err, count) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
@ -1019,6 +1016,9 @@ Mempool.prototype.verify = function verify(entry, callback) {
|
||||
0));
|
||||
}
|
||||
|
||||
if (!tx.checkInputs(height, ret))
|
||||
return callback(new VerifyError(tx, 'invalid', ret.reason, ret.score));
|
||||
|
||||
// Do this in the worker pool.
|
||||
tx.verifyAsync(null, true, flags, function(err, result) {
|
||||
if (err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user