diff --git a/lib/primitives/mtx.js b/lib/primitives/mtx.js index 92e37818..f091d53e 100644 --- a/lib/primitives/mtx.js +++ b/lib/primitives/mtx.js @@ -260,7 +260,14 @@ MTX.prototype.check = function check(flags) { */ MTX.prototype.verify = function verify(flags) { - return TX.prototype.verify.call(this, this.view, flags); + try { + this.check(flags); + } catch (e) { + if (e.type === 'ScriptError') + return false; + throw e; + } + return true; }; /** @@ -382,7 +389,8 @@ MTX.prototype.getSigopsSize = function getSigopsSize() { */ MTX.prototype.verifyInputs = function verifyInputs(height) { - return TX.prototype.verifyInputs.call(this, this.view, height); + let [fee] = this.checkInputs(height); + return fee !== -1; }; /**