From ac70656e71d212478e612be8e48c8832dea058c0 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 22 Feb 2017 07:22:43 -0800 Subject: [PATCH] chain/tx: fixes. --- lib/blockchain/chain.js | 2 +- lib/primitives/tx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blockchain/chain.js b/lib/blockchain/chain.js index 2d5be03c..17c47023 100644 --- a/lib/blockchain/chain.js +++ b/lib/blockchain/chain.js @@ -974,7 +974,7 @@ Chain.prototype.setBestChain = co(function* setBestChain(entry, block, prev, fla // block is in the chain. try { result = yield this.verifyContext(block, prev, flags); - } catch (e) { + } catch (err) { if (err.type === 'VerifyError') { if (!err.malleated) this.setInvalid(entry.hash); diff --git a/lib/primitives/tx.js b/lib/primitives/tx.js index fa92beb2..a8063097 100644 --- a/lib/primitives/tx.js +++ b/lib/primitives/tx.js @@ -1660,7 +1660,7 @@ TX.prototype.hasStandardWitness = function hasStandardWitness(view) { } } - return ret; + return true; }; /**