From ae91ff242022e300159781d8ac4dadd92fa04891 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Wed, 11 May 2016 12:15:33 -0400 Subject: [PATCH] bitcoind: update jsdocs for getBlockHeader --- lib/services/bitcoind.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index 1d3934c9..971c6da1 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -1505,11 +1505,19 @@ Bitcoin.prototype.getBlockHashesByTimestamp = function(high, low, callback) { /** * Will return the block index information, the output will have the format: * { - * prevHash: '000000004956cc2edd1a8caa05eacfa3c69f4c490bfc9ace820257834115ab35', - * nextHash: '0000000000629d100db387f37d0f37c51118f250fb0946310a8c37316cbc4028' - * hash: ' 00000000009e2958c15ff9290d571bf9459e93b19765c6801ddeccadbb160a1e', - * chainWork: '0000000000000000000000000000000000000000000000000000000000000016', - * height: 10 + * hash: '0000000000000a817cd3a74aec2f2246b59eb2cbb1ad730213e6c4a1d68ec2f6', + * confirmations: 5, + * height: 828781, + * chainWork: '00000000000000000000000000000000000000000000000ad467352c93bc6a3b', + * prevHash: '0000000000000504235b2aff578a48470dbf6b94dafa9b3703bbf0ed554c9dd9', + * nextHash: '00000000000000eedd967ec155f237f033686f0924d574b946caf1b0e89551b8' + * version: 536870912, + * merkleRoot: '124e0f3fb5aa268f102b0447002dd9700988fc570efcb3e0b5b396ac7db437a9', + * time: 1462979126, + * medianTime: 1462976771, + * nonce: 2981820714, + * bits: '1a13ca10', + * difficulty: 847779.0710240941, * } * @param {String|Number} block - A block hash or block height * @param {Function} callback