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; }; /**