merkleblock: remove useless method.

This commit is contained in:
Christopher Jeffrey 2017-05-13 03:52:58 -07:00
parent e0c2eb122b
commit b790dfea6d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -142,25 +142,6 @@ MerkleBlock.prototype.indexOf = function indexOf(hash) {
return index;
};
/**
* Do non-contextual verification on the block.
* Verify the headers and the partial merkle tree.
* @alias MerkleBlock#verify
* @param {Object?} ret - Return object, may be
* set with properties `reason` and `score`.
* @returns {Boolean}
*/
MerkleBlock.prototype.verify = function verify(ret) {
if (!this.verifyPOW())
return false;
if (!this.verifyBody())
return false;
return true;
};
/**
* Verify the partial merkletree. Push leaves onto
* {@link MerkleBlock#tx} and into {@link MerkleBlock#map}.