This commit is contained in:
Christopher Jeffrey 2016-05-23 22:18:26 -07:00
parent 1011d1f824
commit 9afb141dce
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -266,7 +266,6 @@ MerkleBlock.prototype._verify = function _verify(ret) {
if (!this.verifyHeaders(ret))
return false;
// Verify the partial merkle tree if we are a merkleblock.
if (!this.verifyPartial()) {
ret.reason = 'bad-txnmrklroot';
ret.score = 100;
@ -320,9 +319,7 @@ MerkleBlock.prototype.inspect = function inspect() {
*/
MerkleBlock.prototype.toRaw = function toRaw(enc) {
var data;
data = this.render();
var data = this.render();
if (enc === 'hex')
data = data.toString('hex');