merkleblock: remove useless method.
This commit is contained in:
parent
e0c2eb122b
commit
b790dfea6d
@ -142,25 +142,6 @@ MerkleBlock.prototype.indexOf = function indexOf(hash) {
|
|||||||
return index;
|
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
|
* Verify the partial merkletree. Push leaves onto
|
||||||
* {@link MerkleBlock#tx} and into {@link MerkleBlock#map}.
|
* {@link MerkleBlock#tx} and into {@link MerkleBlock#map}.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user