temporary fix for "inverse" malleability.
This commit is contained in:
parent
4f715d86c7
commit
2b41cfb9bd
@ -691,13 +691,6 @@ Mempool.prototype.addTX = function addTX(tx, callback, force) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.requireStandard) {
|
if (this.requireStandard) {
|
||||||
if (!tx.isStandard(ret)) {
|
|
||||||
return callback(new VerifyError(tx,
|
|
||||||
'nonstandard',
|
|
||||||
ret.reason,
|
|
||||||
ret.score));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.chain.csvActive && tx.version >= 2) {
|
if (!this.chain.csvActive && tx.version >= 2) {
|
||||||
return callback(new VerifyError(tx,
|
return callback(new VerifyError(tx,
|
||||||
'nonstandard',
|
'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) {
|
this.chain.checkFinal(this.chain.tip, tx, lockFlags, function(err, isFinal) {
|
||||||
if (err)
|
if (err)
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user