Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Documenting result param
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Beddows committed Aug 20, 2017
1 parent a064918 commit db3c776
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/blocks/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ __private.setHeight = function (block, lastBlock) {
* @method verifyBlock
* @method verifyReceipt
* @param {Object} block Target block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand All @@ -129,6 +130,7 @@ __private.verifyPreviousBlock = function (block, result) {
* @method verifyBlock
* @method verifyReceipt
* @param {Object} block Target block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand All @@ -148,6 +150,7 @@ __private.verifyVersion = function (block, result) {
* @method verifyBlock
* @method verifyReceipt
* @param {Object} block Target block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand All @@ -169,6 +172,7 @@ __private.verifyReward = function (block, result) {
* @method verifyBlock
* @method verifyReceipt
* @param {Object} block Target block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand All @@ -192,6 +196,7 @@ __private.verifyId = function (block, result) {
* @method verifyBlock
* @method verifyReceipt
* @param {Object} block Target block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand Down Expand Up @@ -219,6 +224,7 @@ __private.verifySignature = function (block, result) {
* @method verifyBlock
* @method verifyReceipt
* @param {Object} block Target block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand Down Expand Up @@ -283,6 +289,7 @@ __private.verifyPayload = function (block, result) {
* @method verifyBlock
* @param {Object} block Target block
* @param {Object} lastBlock Last block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand All @@ -303,6 +310,7 @@ __private.verifyForkOne = function (block, lastBlock, result) {
* @method verifyBlock
* @param {Object} block Target block
* @param {Object} lastBlock Last block
* @param {Object} result Verification results
* @return {Object} result Verification results
* @return {boolean} result.verified Indicator that verification passed
* @return {Array} result.errors Array of validation errors
Expand Down

0 comments on commit db3c776

Please sign in to comment.