chain/tx: fixes.

This commit is contained in:
Christopher Jeffrey 2017-02-22 07:22:43 -08:00
parent 33bda01d21
commit ac70656e71
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1660,7 +1660,7 @@ TX.prototype.hasStandardWitness = function hasStandardWitness(view) {
}
}
return ret;
return true;
};
/**