temporary fix for "inverse" malleability.

This commit is contained in:
Christopher Jeffrey 2016-07-10 11:03:26 -07:00
parent 4f715d86c7
commit 2b41cfb9bd
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);