From b790dfea6d8fd7ae9449a952dc8971e1edcc2c57 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 13 May 2017 03:52:58 -0700 Subject: [PATCH] merkleblock: remove useless method. --- lib/primitives/merkleblock.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/primitives/merkleblock.js b/lib/primitives/merkleblock.js index 1ca37ac6..2228bd92 100644 --- a/lib/primitives/merkleblock.js +++ b/lib/primitives/merkleblock.js @@ -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}.