diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index 982f435b..6e40018d 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -691,13 +691,6 @@ Mempool.prototype.addTX = function addTX(tx, callback, force) { } if (this.requireStandard) { - if (!tx.isStandard(ret)) { - return callback(new VerifyError(tx, - 'nonstandard', - ret.reason, - ret.score)); - } - if (!this.chain.csvActive && tx.version >= 2) { return callback(new VerifyError(tx, 'nonstandard', @@ -715,6 +708,15 @@ Mempool.prototype.addTX = function addTX(tx, callback, force) { } } + if (this.requireStandard) { + if (!tx.isStandard(ret)) { + return callback(new VerifyError(tx, + 'nonstandard', + ret.reason, + ret.score)); + } + } + this.chain.checkFinal(this.chain.tip, tx, lockFlags, function(err, isFinal) { if (err) return callback(err);